WordPress.org

Forums

Hueman
Dynamic CSS: For no styles in head, copy and put the css below in ur custom.css (2 posts)

  1. dodoland
    Member
    Posted 1 year ago #

    Hi, i want to put the Dynamic CSS in the custom.css

    but i have to copy in custom.css directly the php code?

    Like:
    // google fonts
    if ( ot_get_option( 'font' ) == 'titillium-web-ext' ) { $styles .= 'body { font-family: "Titillium Web", Arial, sans-serif; }'."\n"; }
    if ( ot_get_option( 'font' ) == 'droid-serif' ) { $styles .= 'body { font-family: "Droid Serif", serif; }'."\n"; }
    ...

  2. Alexander Agnarson
    Member
    Theme Author

    Posted 1 year ago #

    Hi!

    You would not copy it from the PHP file, but rather view the page live when you've set your styling options, inspect the source code of the page and you will get all styles you need to copy within the <head> of your theme.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.