WordPress.org

Ready to get started?Download WordPress

Forums

Change colour of post title (2 posts)

  1. denismcd
    Member
    Posted 1 year ago #

    Hi,
    maybe someone can help.

    Our school website is http://www.stfranciscollege-rochestown.ie

    I would like to change the colour of one of the post titles to red.

    It is the text 'Learner Driver Advice' below the 'Latest News' on the right that I want to change. I want to leave the other ones below it as they are.

    Could someone tell me how to do it or where to find the relevant html code so that I can change it.

    Thanks
    Denis

  2. jopsvanthof
    Member
    Posted 1 year ago #

    Hey Denis,

    I would suggest using the CSS "Attribute and Value Selectors" in your style.css file. Check out this very informative tutorial (http://w3schools.com/css/css_attribute_selectors.asp and http://w3schools.com/css/tryit.asp?filename=trycss_attselector_valuelist_space).

    In your particular case, you could add the following to your style.css:

    [title="LEARNER DRIVER ADVICE"]
    {
    color:red;
    }

    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic