Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    You can change the font size via the options page of the plugin under “Settings”. (or do you miss a special option?)

    You can set the font type in the bar with CSS like that:

    #scb-wrapper {
        font-family: Pacifico, Verdana, sans-serif;
    }

    Thread Starter humustorino

    (@humustorino)

    Thanks. Where to put the code indicated?

    Plugin Author Martin Stehle

    (@hinjiriyo)

    You can put it in the file style.css in the folder of your theme.

    Thread Starter humustorino

    (@humustorino)

    it doesn’t work…

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Please tell me the address of your site. I can tell you the correct code.

    Thread Starter humustorino

    (@humustorino)

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Ok, the CSS selectors must be more specific. The code is:

    #scb-wrapper h2,
    #scb-wrapper ul,
    #scb-wrapper li,
    #scb-wrapper a,
    #scb-wrapper a span {
        font-family: Pacifico, Verdana, cursive;
    }

    Thread Starter humustorino

    (@humustorino)

    It doesn’t work. I go to Appearance>Editor>CSS Stile and I paste your code inside the css bok, then I click on “Save” but no change on font style is shown…

    Plugin Author Martin Stehle

    (@hinjiriyo)

    The code is not printed out. Please try that way:

    Paste the following code at the end of the functions.php of your theme:

    // Passed parameter: a string of CSS
    function change_speed_contact_bar_style ( $css_code ) {
    
        // The content has to be surrounded by the STYLE element
        $css_code .= "<style type='text/css'>\n";
        $css_code .= "#scb-wrapper h2,\n";
        $css_code .= "#scb-wrapper ul,\n";
        $css_code .= "#scb-wrapper li,\n";
        $css_code .= "#scb-wrapper a,\n";
        $css_code .= "#scb-wrapper a span {\n";
        $css_code .= "    font-family: Pacifico, Verdana, cursive;\n";
        $css_code .= "}\n";
        $css_code .= "</style>\n";
    
        // Returns changed CSS
        return $css_code;
    
    }
    
    // Let the function work
    add_filter( 'speed_contact_bar_style', 'change_speed_contact_bar_style' );

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘font style and size’ is closed to new replies.