WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post title color and font on single post page (3 posts)

  1. bschatz
    Member
    Posted 1 year ago #

    Here's the link to my site:
    http://www.geardistrict.com/

    Each post title is a link to the single post page. However, I cannot get my custom CSS to carry over to the post titles on any single post page. It works fine on my main page, as well as my category pages. Here is the custom CSS I'm currently using that affect the post title / post links.

    .post .title a:link, .post .title a:visited {
    color: #000000;
    font: bold 25px Arial;
    }

    a:link, a:visited {
    color: #E56717;
    text-decoration: none;
    }

    Any help would be greatly appreciated : )

    Thanks,
    Bryan

  2. shinjing
    Member
    Posted 1 year ago #

    Hi Bschatz,

    Yes, it will not working since the post title on your front page code html is:
    <h2 class="title"><a href="http://www.geardistrict.com/alternative-apparel-eco-heather-zip-hoodie/" title="Permalink to Alternative Apparel Eco-Heather Zip Hoodie" rel="bookmark">Alternative Apparel Eco-Heather Zip Hoodie</a></h2>

    then your single page html is:
    <h1 class="Title"><a href="http://www.geardistrict.com/alternative-apparel-eco-heather-zip-hoodie/" title="Permalink to Alternative Apparel Eco-Heather Zip Hoodie" rel="bookmark">Alternative Apparel Eco-Heather Zip Hoodie</a></h1>

    then, to have the same modification as your front page, then you can put it on your custom.css:

    .Title {
     font: bold 25px Arial !important;
    }
    
    .Title a{
     color: #000!important;
    }

    This one will affected your front and also single page title

  3. bschatz
    Member
    Posted 1 year ago #

    Thank you very much, Shinjing! That worked perfectly.

    I appreciate your quick and accurate response : )

    Best,
    Bryan

Topic Closed

This topic has been closed to new replies.

About this Topic