[Support request] Page Header Image background position

Home Forums Support [Support request] Page Header Image background position

Home Forums Support Page Header Image background position

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #410561
    konceptuel

    Hey Tom,

    hope it’s okay to post a little feature request here in this forum ๐Ÿ™‚
    Is it possible to add the CSS background-position Property as a setting in the Page Header module?
    Fx under the Image tab?
    That way you can create page headers and specify the position of the image to suit the image.
    As it is now the position of the image is the same for all.

    #410790
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I would like to do that – we would also need to add a background-size option as well.

    For now it’s quite easy to use CSS – let me know if you need help with that ๐Ÿ™‚

    #411098
    konceptuel

    Say I want to change the background-position property conditionally, for a specific page, fx the About page. How would I do that?

    #411389
    Leo
    Staff
    Customer Support

    You can install Tom’s Simple CSS plugin:
    https://docs.generatepress.com/article/adding-css/#simple-css

    It gives you a CSS metabox for each page, then try this CSS:

    .generate-content-header {
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center top;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.