WordPress.org

Ready to get started?Download WordPress

Forums

Changing color of post titles in Easel theme (3 posts)

  1. btzitney
    Member
    Posted 1 year ago #

    My site is http://thereisnoquit.com/

    I'm trying to figure out where in the code to go to edit the <h2> font color of the posts displayed on the front page. Can anyone help?

  2. btzitney
    Member
    Posted 1 year ago #

    Anyone?

  3. Raby Yuson
    Member
    Posted 1 year ago #

    The h2 element contains a child node (anchor element) which is what you will need to style.. This is located in your style.css within line 31:

    a:link {
    	color: #b00;
    }

    Since this "selector:pseudo-class" is declared globally (meaning any anchor element will inherit this property i.e. (color:#b00) you might want to isolate only the anchor elements in your front/home page. Add this to your style:

    .post-content h2.post-title a
    {
    color:YOUR_COLOR_HERE !important;
    }

    *replace 'YOUR_COLOR_HERE' with the color you want to use (can be hex value or color name e.g. red/blue etc).

    This will override the style for the element you wish to modify.

    -Raby

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags