[Resolved] How to add background color on the text of page header

Home Forums Support [Resolved] How to add background color on the text of page header

Home Forums Support How to add background color on the text of page header

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1317843
    Paul

    hi, how are you

    i want to add the header each page with generatepress element.

    i want to add the background color on the text of page header, like this screenshot https://prnt.sc/sv81a0 or check sample website https://rolledmetalproducts.com/stainless-steel-type-201/

    can you give me some advice?
    thanks in advance

    #1317859
    David
    Staff
    Customer Support

    Hi there,

    so this CSS for example:

    .page-hero h1 {
        display: inline-block;
        padding: 10px;
        background-color: rgba(255,255,255,0.5);
    }

    This will add a transparent white background to the H1 title added to a header element.

    #1317861
    Paul

    hi,

    thanks for quick response

    https://prnt.sc/svd93c

    which one I will put the above CSS?

    #1317862
    Paul

    hi, sorry, david
    i think i should add them to Element, right?

    #1317870
    David
    Staff
    Customer Support

    Use Simple CSS

    #1317874
    Paul

    Now it is OK。
    Thanks, David

    #1318059
    David
    Staff
    Customer Support

    You’re welcome

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