[Resolved] Page header text background colour

Home Forums Support [Resolved] Page header text background colour

Home Forums Support Page header text background colour

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #287690
    scott doel

    Hi Tom,

    Do you know how I can add a background colour, ideally slightly opaque to the text on the page header of GP Premium?

    #287721
    Leo
    Staff
    Customer Support

    Hi Scott,

    You can use HTML style inside of the Page Header Content. So add something like this:
    <span style="background:rgba(239,239,239,0.46)">Page Header Content Here</span>

    Let me know if this is what you wanted.

    #287723
    scott doel

    Perfect Tom, thank you very much

    #287724
    Leo
    Staff
    Customer Support

    You’re welcome!

    #287725
    scott doel

    Sorry Leo, didn’t spot it was you and not Tom!

    Should have asked first off but also is there a way to hide the page header on mobile?

    #287731
    Leo
    Staff
    Customer Support

    All good ๐Ÿ™‚

    This CSS should work:

    @media (max-width: 768px) {
        .generate-page-header {
            display: none;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know.

    #287735
    scott doel

    Worked a treat, thanks Leo

    #287745
    Leo
    Staff
    Customer Support

    You’re welcome ๐Ÿ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.