Developer Documentation#
This area of the documentation contains information for developers of the OU Book Theme.
Updating the OU headers and footers#
To update the OU headers / footers follow these steps:
Replace the content of
ou_book_theme/theme/ou_book_theme/ouheaderswith the newest versions of theguiandjsfolders from the updated theme. Then:In the
ou_book_theme/theme/ou_book_theme/ouheaders/gui/headerfooter.min.cssreplace all occurrences of/ouheaders/guiwith..In the
ou_book_theme/theme/ou_book_theme/ouheaders/js/src/ou-header.jsreplace all occurrences of'/ouheaderswithdocument.querySelector('html').getAttribute('data-content_root') + 'ouheaders.Run hatch run build-ou-branding to build the minified version
Replace the contents of the
ou_book_theme/theme/ou_book_theme/ou-header.htmlwith the content from the updated theme. Then:In the updated file replace all occurrences of
/ouheaderswith{{ content_root }}ouheadersIn the updated file comment out the Google Tag Manager tracking iframe
In the updated file comment out the Skip-to-main-content link
Replace the contents of the
ou_book_theme/theme/ou_book_theme/ou-footer.htmlwith the content from the updated theme. Then:In the updated file replace all occurrences of
/ouheaderswith{{ content_root }}ouheaders
Replace the contents of the
ou_book_theme/theme/ou_book_theme/ou-head.htmlwith the content from the updated theme. Then:In the updated file replace all occurrences of
/ouheaderswith{{ content_root }}ouheaders