WordPress.org

Support

Support » Themes and Templates » [Resolved] Changing The font Colour (Oenology Theme)

[Resolved] Changing The font Colour (Oenology Theme)

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Chip Bennett

    @chipbennett

    Theme Review Admin

    There are a couple of options:

    1) Use a dark, rather than a light, color scheme. The dark color schemes have lighter font colors.
    2) Use a Child Theme, and set the font color to whatever you want.

    Hello Chip, thanks for your quick reply. I really like the current colour scheme. I have manage to change the font size, but not having luck with the colour. Can you please tell me which line in the Stylesheet file I need to change?
    I’m very new to HTML and finds the child theme creation abit daunting at the moment (I know you personally believe its not too hard). Thanks again.

    Theme Author Chip Bennett

    @chipbennett

    Theme Review Admin

    Do you have a live link to the site in question?

    Ok here it is: http://www.thetechstorm.com/ . I would like the grey colour font on the widget to be darker. Thanks again. Its an excellent theme.

    Theme Author Chip Bennett

    @chipbennett

    Theme Review Admin

    Thanks for the kind words. 🙂 I’m happy to see the Theme being put to good use!

    You need to target .title, .widgettitle, the color for which is defined in the varietal stylesheet, that loads after style.css.

    To override, e.g. to make the text black, add the following to your Child Theme functions.php file (or to a site Plugin):

    function oenology_child_custom_styles() {
        ?>
    <style type="text/css">
    .title, .widgettitle {
         color: #000;
    }
    </style>
        <?php
    }
    add_action( 'wp_print_styles', 'oenology_child_custom_styles', 99 );

    You need to hook into wp_print_styles, with a very high priority, to ensure that this style outputs after the varietal stylesheet is loaded, in order to ensure that the CSS rules cascade properly.

    For future reference, using Firefox Firebug and/or Chrome Developer Tools is extremely helpful in determining what CSS rules are being applied to a given element.

    Ok thank you. I will give this a go.

    Managed to create the child theme, but I’m now stuck. I thought I just has to paste the code you gave me into the style.css file of the child theme. I guess I need to do a bit more. Any further advice to what you have already given me? Thanks.

    Hi Chris, I figured it out now. Thanks again. I just went into the varietal stylesheet and made the change.

    Theme Author Chip Bennett

    @chipbennett

    Theme Review Admin

    I just went into the varietal stylesheet and made the change.

    Please note that I do not support, and strongly discourage changing the style sheet directly. This change will be overwritten when the Theme is updated.

    But, I’m glad you got it working. 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Changing The font Colour (Oenology Theme)’ is closed to new replies.