WordPress.org

Ready to get started?Download WordPress

Forums

Oenology
[resolved] Changing The font Colour (Oenology Theme) (10 posts)

  1. techstorm
    Member
    Posted 2 years ago #

    Can someone please tell me how to change the colour of the font. The current colour (grey) is difficult to see when you install a custom background. I'm using the Chardonnay setting. Thank you.

    http://wordpress.org/extend/themes/oenology/

  2. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 2 years ago #

    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.

  3. techstorm
    Member
    Posted 2 years ago #

    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.

  4. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 2 years ago #

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

  5. techstorm
    Member
    Posted 2 years ago #

    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.

  6. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 2 years ago #

    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.

  7. techstorm
    Member
    Posted 2 years ago #

    Ok thank you. I will give this a go.

  8. techstorm
    Member
    Posted 2 years ago #

    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.

  9. techstorm
    Member
    Posted 2 years ago #

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

  10. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 2 years ago #

    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. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags