[Support request] Page Header Image

Home Forums Support [Support request] Page Header Image

Home Forums Support Page Header Image

  • This topic has 15 replies, 3 voices, and was last updated 7 years ago by Tom.
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #298599
    David

    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?

    #298635
    Leo
    Staff
    Customer Support

    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.

    #298775
    David

    @Leo

    What is the best method to address this?

    Thanks!

    #298778
    David

    That didn’t not work as desired. The background is not resizing. Using Simple CSS to drop in the CSS you provided.

    You can see the result here: http://cmcwebdev.com/privacypos/privacypos-landing-page-v5a/

    I basically need the Page Header to work as on this page http://cmcwebdev.com/privacypos/.

    What do you think?

    #298779
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #298785
    David

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

    #298789
    David

    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?

    #299008
    Tom
    Lead Developer
    Lead Developer

    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..

    #299081
    David

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

    #299167
    Tom
    Lead Developer
    Lead Developer

    I don’t think it’s possible. If you have any examples of other sites doing it definitely let me know πŸ™‚

    #299253
    David

    I was attempting to reproduce this header feature. Looks like I must go at this another way. Thanks for the input.

    http://startit.select-themes.com/product-landing-page-ii/

    #299480
    Tom
    Lead Developer
    Lead Developer

    What they’ve done there is set their image as a background image.

    If you look at the image, they’ve made it large enough with a big empty space for the text: http://startit.select-themes.com/wp-content/uploads/2016/07/angle-slide-background.jpg

    #299714
    David

    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.

    #299745
    Tom
    Lead Developer
    Lead Developer

    No problem! πŸ™‚

    #299798
    David

    I will attempt to implement a basic version of this cool parallax feature I discovered today. Check it out very cool http://antonandirene.com/

    Source code can be found on GitHub:
    https://github.com/hwthorn/parallaxify

    Cheers!

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