• I want to change the style of my post title but I cant seem to do it without changing the the page title as well as they both share the same tag.
    I cant add a new class to just the post title as the title function is only called once in the loop and it is used for both the title and the post title.

    Please help…I have racked my brain and I have no idea how to do this.

    https://www.bucketcrusher.co.nz

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter brad_langdon

    (@brad_langdon)

    If this is not possible can someone also please let me know.

    – Thanks

    Do you mean on the News page – you want NEWS & UPDATES… to look different from Sales Representative Opportunity?

    If so, you can target the Sales Representative Opportunity with .post h2 and the NEWS & UPDATES… with just the h2.

    So, something like this:

    .post h2 {
    font-family: __________;
    font-size: _________;
    color: ___________;
    }

    and just the regular h2 styling will work for the other.

    If I’ve misunderstood, can you post the code for the loop or maybe let me know which theme you’re using?

    Thread Starter brad_langdon

    (@brad_langdon)

    .post h2 is the tag I want to change but if you look on the other pages such as ‘forum’ and ‘about’ you will notice that the headings are also using the .post h2 tag.

    The heading on the news page is actually hard coded as it wouldnt show up for whatever reason.

    So is there a way to give the headings on other pages a different class to the post headings on the news page? I looked on page.php and the .post h2 tag is only used once and it is being used for the post titles and the page titles at the same time in the same function.

    I hope that makes sense.

    It looks like the titles for the blog posts are in .post h2 and the titles for the pages (About) is .entry h2 .

    If that’s not it, then I would just open index.php and page.php and assign a different class to each of those items.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Separate Post and Page title styles’ is closed to new replies.