If you have high in-house technical skills, access two files to have a dramatic impact on your website without additional development from ePublishing.
- One is the CSS (Cascading Style Sheets), which is hosted in the Media Manager. Look for a file called yourdomainname.css.
If you don't see the file, you can add it. The site's templates will only use it if it exists in the Media Manager.
NOTE: This is to be used by advanced users only. Changes made to this file can have dramatic impacts on your website. If you submit a support request to fix problems that stem from this file, any time researching and fixing the problem will be considered billable.
3.1. JQuery and other libraries?
jQuery is already included in the core of the site, linking to another version will cause conflicts.
To include a 3rd party script, we have a special function for this. Most modern scripts support AMD or CommonJS. Our scripts expect AMD, so importing a script traditionally in the source will likely break. Instead, use the following snippet in your client.js file to include another script:
Requiring this script returns a jQuery AJAX Promise. If you need to make sure the script has loaded before loading additional code, like setting up a jQuery plugin, you could do the following:
// custom code here
// e.g. init jQuery plugin
4. CAUTION: Changes should not modify the DOM or core templates.
The contents of this file should not modify the DOM or core templates, other than Editorial Content Zones, or WYSIWYG controlled content. As core code is continuously updated over time, as a result any conflict that arises from this file will be considered billable.