WordPress.org

Ready to get started?Download WordPress

Forums

Fifteen
[resolved] How to change post title colour on homepage (5 posts)

  1. goalnetZ Steve
    Member
    Posted 3 months ago #

    Hello.

    I'm looking to change the colour, etc. of the post titles on the homepage that are shown below the post image.

    I believe the CSS class for these post titles is h2.entry-title, but I can't seem to change the colour with whatever CSS I use.

    Can anybody offer any advice on this?

    Many thanks.

  2. JanHoekdotCom
    Member
    Posted 3 months ago #

    Put !important behind the color code

    h2.entry-title [
    color: #333333 !important;
    }
  3. esmi
    Forum Moderator
    Posted 3 months ago #

    Do not edit the theme itself. First create a child theme for your changes. Or install a custom CSS plugin.

  4. goalnetZ Steve
    Member
    Posted 3 months ago #

    Thanks JanHoekdotCom. Unfortunately that didn't work on my website for some reason. I can change the background-color fine but the color of the font will still not change.

    Thanks also esmi, although I already use a custom CSS plugin for any modifications.

  5. goalnetZ Steve
    Member
    Posted 3 months ago #

    Figured it out. The following CSS can be used to change the colour of the post title links on the homepage:

    #primary-main h2.entry-title a {
    	color: #F6F6F6;
    }

Reply

You must log in to post.

About this Theme

About this Topic