Skip to content


On University of Adelaide websites, widgets are information boxes that provide additional content and add interest to a site.

Widgets usually appear in a column on the right-hand side of the content area of the page. They are primarily used on the front page of the site, although they can also be used to add value to other key pages within the site.

Widgets can be used to either display one specific widget per page or to randomly load different widgets each time the page is refreshed/revisited.

  • How Widgets Work

    All websites have a widgets-index/ and a widgets/ folder at the top level of the site. These folders may have widget files within them (html files) or may be empty.

    The widgets-index/ is specifically only for widgets on the home page. The widgets/ at the top level of the site is for ALL pages within your site as all subpages inherit their "parent" folder's widget unless specified otherwise. Generally the widgets/ folder is empty, so you don't have a widget on ALL of your pages within your site.

    If you do have a widget in the top level widgets/ folder and wish it NOT to be displayed on a specific page, then you will need to create a blank widgets/ folder for that page.

    To create a blank widgets/ folder you need to do the following:

    • Go to the page you want to remove the widget from
    • In the address bar where your site page URL is (, you will need to type after the pagename/ "widgets/". e.g.:
    • Once typed in, press Enter on the keyboard to search for this. An error will come up, but you can then click 'create'.
    • Once you create this new folder, it will automatically create a page within it and take you into edit mode.
    • Click 'cancel' and then click 'files' as you will need to delete this file.
    • Once in the files area, 'delete' the index.html file in the folder. By doing this, you have created a blank widgets folder, and therefore stopped this page from inheriting its 'parents' widget.

    NOTE: to upload this change, you will need to go to the page you took the widget off of, and click the 'upload dir' instead of the normal 'upload' option. This will upload the empty folder too, so that the widget is removed.

  • Creating a Widget

    To create a new widget, go to the page you want the widget on and in the address bar of your browser, type in '/widgets/' at the end e.g. and press Enter.

    An error page will appear, but the top editing box at the bottom of the page will have a link that says 'create'. Click 'create'.

    Now you can insert your information into the widget through TMS.

    Add Content to Your New Widget

    To add content to your new widget , take a look at the Widget page on the Pattern Library.

    The Widget page will provide you with a number of widget options. Under each option will be a [show source] link which, once clicked, will show you the relevant HTML code for that widget and allow you to copy it.

    When you have copied the code, go back to your website editing screen, and use the HTML icon in the editing toolbar to paste in the code you have just copied.

    Click Update and you should now be able to edit the content of the widget using TMS as normal.

  • Additional Widgets

    To create an additional widget so that your widgets randomly load on the page, simply go to the address bar again and search for the page name followed by /widgets/ (as you previously did), ensuring that you also add on after the /widgets/ the new widgets name, followed by '.html'. For example,

    Make sure that you specify '.html' on the end of the filename, otherwise the widget won't work as it should.

    The widgets can then be edited in the same way as you would for the main website pages, using TMS.

  • Editing Widgets

    Homepage Widget

    To edit your widget on the homepage, use the 'files' link in TMS to navigate to the widgets_index/ folder and click on the folder to open it. Here you will find one or more html files; these are your widgets. Find which one you want to edit, and click the 'edit' link. Make your changes, then Preview, Save Changes and Upload.

    Widgets Not on Homepage

    To edit a widget that is NOT on the homepage there are two possible ways in which you can do this depending on the site structure:

    • If the widget appears on all content pages within your site:
      Navigate to the widgets/ folder through the 'files' link from the homepage and click the widgets/ folder to open it. You can then 'edit' the html widget file from there.
    • If the widget only appears on one page in your site, (or if you cannot find the widget you think should be in the widgets/ folder):
      Navigate to the page that the widget is on. Click 'files' and there should be a widgets/ folder within that pages folder. Then click on the folder widgets/ and from there you should be able to 'edit' the widget html file that sits in that folder.

    Images Within Widgets

    The widgets have a specified image size of 230x150 pixels. The Profile Widget page on the Pattern Library has an example widget with a placeholder image of this size.

  • Including Widgets in a Page

    The University templates check the contents of the widgets folder and automatically include the widgets in the page if they are found. Widgets will be displayed as follows:

    Location Where Displayed
    widgets-index/ folder at the top level of the site Widgets located in this folder will be displayed on the homepage of the site.
    widgets/ folder at the top level of the site Widgets located in this folder will be displayed in every page of the site. This is useful if you have some general information that you want displayed throughout the site.

    To avoid displaying widgets in a particular subfolder of the site, an empty widgets/ folder can be placed in the subfolder.
    widgets/ folder in a subfolder of the site Widgets located in a widgets/ folder in a subfolder of the site will be displayed in the pages at and below that folder.

    Do NOT place any images, or documents (including pdf's) into the above folders. They should go into your websites images/ or docs/ folder.


Web Team

Call us: For urgent requests or to speak with someone directly,
please contact one of our team members.
Not sure how to do something? Take a look at our FAQs.