[Resolved] Background image on headings

Home Forums Support [Resolved] Background image on headings

Home Forums Support Background image on headings

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #915759
    James

    Hi,

    Could someone post an example of CSS I would use to set a background image for H1, H2, H3, H4 and H5’s please. I know how to use the code to put the image in but just need example of code for generatepress theme. Thanks.

    #915887
    Leo
    Staff
    Customer Support

    Hi there,

    It’s pretty rare to put background images on headings but you can try some CSS like this:
    h1 {
    background-image: url(https://URL-HERE);
    }
    Let me know πŸ™‚

    #915961
    James

    Hi Leo,

    Many thanks I’ll give it a try when I am home, I see a lot of blogs with like a blue line or green line graphic underneart each header and sometimes a multicolours box behind the header, so I assume they are using images. Thanks πŸ™‚

    #916411
    Leo
    Staff
    Customer Support

    Sounds good.

    If that doesn’t work, link me to an example πŸ™‚

    #916445
    James

    Will do,

    Thanks much appreciated πŸ™‚

    #916462
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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