Skip to content

Additional CSS / JS

Adding custom CSS and JavaScript gives you finer control over how your site looks and behaves. Shock includes dedicated fields for both, so you can drop in snippets without editing theme files — and without losing your changes when the theme updates.

  1. Open the CSS field.

    From your WordPress panel, go to Shock » Theme Settings » Additional CSS.

  2. Paste your styles.

    Enter your CSS in the field. For example, to round the corners of every button:

    .btn {
    border-radius: 12px;
    }
  3. Save your changes.

    Click Publish to apply.

  1. Open the JS field.

    From your WordPress panel, go to Shock » Theme Settings » Additional JS.

  2. Paste your script.

    Enter your JavaScript in the field. For example:

    document.addEventListener('DOMContentLoaded', () => {
    console.log('Shock: custom script loaded');
    });
  3. Save your changes.

    Click Publish to apply.