Site logo

Archived topic

Page Header Image

15 replies · Started by David on March 28, 2017

Viewing posts 1–15 of 16

Greetings Tom and Leo,

I am using Page Header Image for this frontpage: http://cmcwebdev.com/privacypos/

Setting are as below for
Resize image: Enabled.
Image width: 0px
Image height: 0px
----
Content: blank
----
Logo: blank

Everything is working as desired. Image resizes beautifully.

But when I add content I am faced with a set of issues concerning the image resizing. You can see those results here: http://cmcwebdev.com/privacypos/privacypos-landing-page-v5a/ The image is big. It doesn't scale like the first example.

I need to add the same copy but keep the Resizing Image function as seen here: http://cmcwebdev.com/privacypos/

Any recommendations?

Hi David,

I'm not certain this is the best method but give this CSS a shot?

.generate-content-header {
    background-size: inherit;
    background-repeat: no-repeat
    background-position: center;
}

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

Let me know.

@Leo

What is the best method to address this?

Thanks!

Background images typically don't scale.

If you're going to add content to the page header area, you're better off adding the image as a static image with HTML inside the page header content along with your text.

This way the image will respond the screen as a static element instead of sitting in the background as a background image.

Let me know if that helps or not :)

Thanks. That is clear. I will reconstruct the header for optimal results.

Hmmm. After considering what is required for the Page Header. I need to apply the Parallax feature after I sort out the scaling issue. And that only works with background images. Correct?

That's correct, parallax is mainly meant for background images that take up the entire container. Not sure much for static images of physical things like computers, cars etc..

Any recommendations for making that static image appear with parallax feature. Thanks guys!

I don't think it's possible. If you have any examples of other sites doing it definitely let me know :)

Yes, I saw that. I will have to work out another approach to get the parallax to work in the Page Header. Thanks again for your expert input, Tom.

No problem! :)

This archived topic is closed to new replies.