Skip to content
Knowledge Base

How to add a small CSS change without editing theme files

For a small visual adjustment, use the theme’s existing controls first. If those do not cover the change, Additional CSS can override styling without editing the parent theme’s files.

Identify the element and the pages affected. A broad rule can change buttons, headings, or spacing throughout the site, so use a selector that matches the intended scope.

Keep a copy of existing custom CSS before editing it. A CSS class added to a block is a selector hook, not a place to paste a complete stylesheet. CSS also does not replace the correct control for page content or menu structure.

  1. Classic theme: open Appearance → Customize → Additional CSS, when the theme supports the Customizer.
  2. Block theme: use the Site Editor’s Styles interface and its Additional CSS controls. Site-wide and per-block options have different scopes.
  3. Add one small rule and preview the intended element.
  4. Save or publish the change only after checking its scope.

For example, you can assign a distinctive class to one supported block and target that class in Additional CSS. The actual selector and properties must match your page; a generic snippet cannot be assumed correct for every RT-Themes product.

Directly editing the parent stylesheet risks losing those file edits during an update. PHP or template changes are a different task and may need a suitable child theme or plugin. See safe theme updates.

Review the changed page, another page using similar elements, and mobile layout. Use keyboard navigation if the rule affects controls or focus styling.

To undo the change, remove the rule you added and save again. If the live result remains old, follow cache checks instead of layering more rules over it.