Adding Global CSS and JavaScript in Breakdance
This guide explains how to add CSS or JavaScript site-wide, ensuring that the code runs globally across your website.
Accessing Global Settings for Code
- Open the Settings menu in Breakdance.
- Navigate to Global Settings > Code.
Adding Global CSS
Inserting CSS Code
- Click on ‘Add Stylesheet’ within the Code section.
- Type in your CSS code, for example:
body { background-color: red !important; }
- Changes should take effect immediately.
Adding Global JavaScript
Inserting JavaScript Code
- Click the ‘Add JavaScript’ button in the Code section.
- Paste your JavaScript code into the provided field.
- Note that the JavaScript runs immediately upon pasting.
Additional Notes
This feature is particularly useful for applying site-wide customizations or adding functionality without editing individual pages or posts. To insert HTML with script tags, use the WordPress admin panel in the Breakdance settings.