1. Home
  2. Docs
  3. Modifications of theme
  4. Adding Custom CSS

Adding Custom CSS

To add your CSS changes safely you have 3 ways of doing this:

  1. Appearance → Customize → Custom CSS – this custom CSS field from theme, and will work only if you have our main or child theme activated. All CSS added here will be added at end of theme user/user.css file.
  2. Appearance → Customize → Additional CSS – this is WordPress field that was added in version 4.7. Changes added here will be visible independent of theme that you use. Css from here will be inlined on each page displayed on front-end.
  3. Using child theme style.css file – this will only work if you have activated child theme.

 

Choose whatever you option you want, and you can insert there your custom CSS.

Order of CSS that is included in theme

In this theme default stylesheet is loaded from main theme, and then you can overwrite CSS rules in style.css of child theme. After this comes user.css with changes set in admin panel. So finally it loads in this order:

  1. main theme style.css
  2. child theme style.css
  3. located in main theme user/user.css(settings form admin panel)
  4. Custom CSS from panel(it is added at end of user.css)
Was this article helpful to you? Yes No