[Resolved] Italics in Header Shows only on Home Page

Home Forums Support [Resolved] Italics in Header Shows only on Home Page

Home Forums Support Italics in Header Shows only on Home Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #631098
    James

    Recently, I added the CSS code:

    h1 {
        font-style: italic;
    }
    h2 {
        font-style: italic;
    }
    

    My site title is italicized on the home page, but not on any other page. I have cleared caches and tried different browsers. Here’s the link:
    The Miramichi Reader

    James M. Fisher
    www.MiramichiReader.ca

    GeneratePress 2.1.3
    GP Premium 1.6.2
    #631103
    David
    Staff
    Customer Support

    Aah ok, on your home page the site title is given the H1 whereas on other pages it is the page title, so you need to add this selector as well .main-title – little tip, when elements share code you concatenate the rules like so:

    h1, h2, .main-title {
        font-style: italic;
    }
    #631308
    James

    Great! Thanks again for the great support. 👍

    James M. Fisher
    www.MiramichiReader.ca

    #631338
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.