Coursedog’s catalog product gives institutions the option to customize their public catalog fully, from the color of web elements to including branded assets like logos in the navigation and footer.
One of Coursedog’s most asked about features is the HTML snippet function. In the Website Settings tab within Settings, users have the ability to inject HTML snippets before the page (as a header) or after the page (as a footer).
HTML Snippet Best Practices
HTML Snippets Should be Fully Standalone
As a best practice, HTML snippets should be delivered fully standalone. That means the HTML renders correctly without depending on any external CSS. This website is a great resource to ensure that this is the case. If the code is pasted into the “HTML” rectangle, and the resulting image looks correct in the “Result” rectangle on the bottom right of the page, the snippet should be good to use.
Ensure Class Names are Unique (If You Want CSS Rules inside the HTML)
If CSS rules inside the HTML are also desired (which is possible), users should ensure that all the class names are very unique. As a rule of thumb, prefix all class names with school_code+injected. This should prevent any possible collisions with the website itself.
Example – .dbu-injected-navigation-button
If you’d like to include complex functions in your headers – drop-down menus, searches, animations, and beyond – please contact the Coursedog team.
View an example here (and below).