You may occasionally need to apply special formatting, such as an alert box or peekaboo, to content on your pages. You’ll need to edit the HTML directly to apply these special formatting options. If you are not comfortable doing this, please ask your Publisher or IT Services for help.
In WordPress, you can usually use Panels to make certain parts of your content display or function differently. However, sometimes you need to format your content in an alert box. Also, Panels are not available for Programs. The formatting options below provide an alternative.
The following areas allow the use of alert boxes:
- Core content area
- All main pages
- Program Catalogue
- Umbrella pages
- Panels
- WYSIWYG simple
- WYSIWYG column
- Accordion
Mark important content
The best place for your most important content is right at the top of your page or Program Overview subpage (not in a pageblock). If you need to mark a small section of content as more important, there are three options.
This blue box is calling attention to your notice. Are you really, really sure this is important and timely information? Appropriate usage might relate to information about a major change to a program. This is the default alert colour, and is consistent with Banner-generated alerts. If in doubt, choose blue.
This grey version is making a note that is worthy of the user’s attention. Have you checked that it’s not competing with other key messages on the page? Is this really the most important piece of content on the page? Appropriate usage might include highlighting a change in program requirements for the upcoming term.
This is an alternative alert to the default blue alert for a temporary-yet-important update. Appropriate usage might include information about an office closure.
You can add either option to either a single element, or a selection of them together. For each option, switch to the Text view to add the HTML.
Peekaboo (“click to expand/contract” content)
The markup below will produce something similar to the Accordion Panel. Adding it to your content correctly will require significant care and attention to detail, and is best done by those with significant HTML experience. To add the Peekaboo markup:
Note: Do not use this in lieu of an Accordion panel if one is available.
- Add your content as usual.
- If there is not already a wrapper (a <div></div> pairing at the start and finish) around the content you want to affect, create one.
- Add class=”peekaboo” to the wrapper/div.
- Add class=”clicktoshow_off” on the initial line of text that the user would click on to show the rest. This should be inside the wrapper/div.
- Use more sub-wrappers (divs, paragraphs, etc.) to identify what you want hidden and add class=”hide” to the sub-wrappers.
Important: Don’t hide the initial line of text identified above.
More information about working with content and formatting
More information about managing public website WordPress content
-
Adding, Removing, and Editing Links in Public Website WordPress
-
Cancelling Events in the Public Website WordPress Events Calendar
-
Creating and Editing Events in the Public Website WordPress Events Calendar
-
Creating and Managing Course Umbrellas in Public Web WordPress
-
Creating and Modifying Site/Navigation Menu Structure in Public Website WordPress
-
Creating Headings, Lists, Tables, and Other Core Content Elements in WordPress
-
Embedding Background Video in Page Headers in Public Web WordPress
-
Embedding Video and Video Playlists in Public Website WordPress
-
Fixing and Preventing Broken Links on your Website using Checkbot
-
Managing Mailing Lists and Subscribers in Public Website WordPress
-
Managing PDFs and Other Documents for the BCIT Public Website
-
Navigating Between Multiple Section Views in Public Website WordPress
-
Previewing Your Responsive WordPress Content As It Would Appear on Other Devices
-
Reviewing, Comparing, and Rolling Back to Previous Versions of Content in Public Web WordPress
-
Updating the Global Alert in Public Website WordPress (Emergency Response Team Only)
-
Usage Guidelines for the Events Calendar in Public Website WordPress