Skip to Main Content 

Basic Coding in LibGuides

What are Widgets?

Widgets are typically easy to use and simple software that allows a user to perform a task on a webpage, or a way to present information more dynamically on a webpage. Most commonly widgets are embedded onto a webpage, and the most common widget is a search bar.

How to Use the Widget Tool

SpringShare's LibGuide platform offers a tool that will generate a LibGuide Widget for you! To access this tool, navigate to your LibGuide homepage and in the LibGuides Shortcuts box, the fourth link should be "Generate a LibGuides Widget". Once you are on this webpage, you will have many options for pre-defined widgets that you can customize for your own use. The options are:

  • Guides
  • A-Z List
  • Users
  • Subjects
  • Groups
  • Tags
  • Content Box
  • Guide / Page
  • Search Box
  • Blog

Once you have selected the widget you would like to create and have entered any customizations you want, you will be able to copy the embed code. You can add this embed code to most content management system, if you are using LibGuides you would paste the code in a media / widget content box.

How to Embed Online Content

There are two ways to embed online content on to your LibGuide. The first is look for a share or embed icon on other pages, many media sites will offer a embed sharing option that will give you a code that you can embed onto your LibGuide. The other way you can embed another webpage onto your LibGuide is to use the iFrame HTML tag:

<iframe width=1032 height=500 src="https://ask.springshare.com/"></iframe>

In this example we are using the iFrame tag with the attributes width, height, and src to specify the width, height, and URL of the content we wish to embed on to our LibGuide, and we close it with a closing tag.