Skip to Main Content

Reusable Boxes, Widgets, and more

Internal UC Irvine Libraries resource guide to store reusable content.

Email this link:

Email address link (LibGuides profile box)

Screenshot of profile box with clickable email link.Why you might use this (example use case)

When customizing your LibGuides profile contact info, the "Email Address" field generates an "Email Me" button but does not display the actual email address. 

For various reasons, you may wish to have your actual email address displayed, as well.
 


HTML code for a clickable email link

<a href="mailto:panteater@uci.edu">panteater@uci.edu</a>

Notes:

  • The red bold text is a placeholder for your email address.

Where to enter the code

  1. Navigate to the LibApps dashboard.
  2. Select My Profile in the command bar.
  3. Stay on the My Profile tab.
  4. In the Address* field (Contact Info section), copy and paste the code above (replacing the red bold text with your email address).
    *With flexible schedules, it is common practice not to list your physical office number/location in the "Address" field.
  5. Select the blue check button to Save.
    Screenshot of My Profile in LibApps.Screenshot of Address field in My Profile.

Two columns of rich text

Screenshot of two columns of rich text in a box.Why you might use this code (example use case)

Instead of using a table for layout purposes (which violates accessibility best practices), you can use CSS code display content in two columns.


CSS code for two columns of rich text

<style>
#s-lg-content-00000000 {
column-count: 2;
}
</style>

Notes:

  • 00000000 is a placeholder for the unique Content ID number, so the code applies correct content item.
  • To find the Content ID number:
    1. Select the Page button at the top of the page (next to the Page URL)
    2. Under the Reorder / Move section of the dropdown menu, select Content Items.
    3. Navigate to the box and content item you are working on and find the Content ID number in parentheses.
    4. Select the Save Order button in the box to return to regular edit mode.
      Screenshot of how to reorder content items.Screenshot of where to find a content ID number.

Where to enter the code

  1. In edit mode, select the Guide Layout button (top right corner).
  2. Select Guide Custom JS/CSS from the dropdown.
  3. In the text area, copy and paste the code above (replacing the red bold text with your Content ID number).
  4. When finished, select Save.
    Screenshot of Guide Layout menu.Screenshot of Guide Custom JS/CSS menu.

Two columns of database or link assets

Screenshot of box with two columns of database assetsWhy you might use this code (example use case)

Instead of using a table for layout purposes (which violates accessibility best practices), you can use CSS code display content in two columns.


CSS code for two columns of assets

<style>
#s-lg-box-00000000 .s-lg-link-list {
column-count: 2;
}
</style>

Notes:

  • 00000000 is a placeholder for the unique Box ID number, so the code applies to the correct box.
  • Make sure there is a single space after the box number and the rest of the code, (i.e., .s-lg-link-list...).
  • To find the Box ID number,
    1. Select the Edit button (pencil icon) in the top right corner of the box.
    2. The Box ID will be listed on the Box Info tab.
      Screenshot of how to find the box ID number.

Where to enter the code

  1. In edit mode, select the Guide Layout button (top right corner).
  2. Select Guide Custom JS/CSS from the dropdown.
  3. In the text area, copy and paste the code above (replacing the red bold text with your Box ID number).
  4. When finished, select Save.
    Screenshot of Guide Layout menu.Screenshot of Guide Custom JS/CSS menu.

NameBadge "Hear my name" button (LibGuides profile box)

Full instructions for creating a NameBadge and the custom HTML code used to add the NameBadge "Hear my name" button to your LibGuides profile box are available on the Name Pronunciation page of the LibGuides Accessibility guide.