Support » Themes and Templates » updating theme options css

  • hi there

    what is the best way to change a theme’s CSS through theme options ?

    I have experimented with using a hook to inject the css directly into the head of the page.

    I have also used a .php file in the and enequed it as a style and updated the css from the theme options array.

    I want to submit this theme that im making to wordpress.org and just trying to get an answer regarding the best practice for theme options for changing things like color, backgrounds etc..

Viewing 1 replies (of 1 total)
  • Some themes have a “Custom CSS” box in their options panel. The code entered here is saved in the database and is printed as an internal stylesheet in the frontend.

    Some themes save the code in a separate .css file outside the theme’s directory which is enqueued in the frontend.

Viewing 1 replies (of 1 total)
  • The topic ‘updating theme options css’ is closed to new replies.