[Resolved] How to make Page Header Mobile Friendly (Responsive)?

Home Forums Support [Resolved] How to make Page Header Mobile Friendly (Responsive)?

Home Forums Support How to make Page Header Mobile Friendly (Responsive)?

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #635043
    Ravi Dixit

    I have created a page header for my blog page, it was very easy to create with the Legacy page header but when I finished it and open in mobile view it is not mobile friendly at all.
    Here is the screenshot of desktop view: https://www.staymeonline.com/screenshot-25/
    And here is the mobile view: https://www.staymeonline.com/screenshot-26/

    I want to make it mobile friendly tried all ways but don’t know how?

    #635179
    David
    Staff
    Customer Support

    Hi there, are you able to provide access to the site?

    #635184
    Ravi Dixit

    No, Actually site is in Under maintenance, I am redesigning the site.
    Are you asking for what? admin access or what?

    #635196
    David
    Staff
    Customer Support

    We just need to be able to view the site. We can then browser inspect it to diagnose the problem.

    #635203
    Ravi Dixit

    Ok, let me finish my work then I will make the site live from maintenance mode…

    #635287
    David
    Staff
    Customer Support

    Ok, let me know πŸ™‚

    #635808
    Ravi Dixit

    Hi, David!

    The site is live now, you can check the page I was talking about staymeonline.com/blog

    Please help me ASAP
    Thank you πŸ™‚

    #635911
    David
    Staff
    Customer Support

    Hi there,

    remove the left and right padding from the page hero content. Let me know

    #635921
    Ravi Dixit

    Gotcha! It has been solved!

    Thanks, David for your fast support πŸ™‚

    #635925
    David
    Staff
    Customer Support

    You’re welcome πŸ™‚

    #635954
    Ravi Dixit

    Is there any option to make background image fit on the screen in mobile view?

    #635979
    David
    Staff
    Customer Support

    You would need to make a few changes and a little CSS.
    Make the H1 responsive by removing the inline-css you have. And then set this in your Customiser > Typography > Headings. Set the Desktop to 70 and then reduce the mobile right down to say 44px.

    Then you can adjust the mobile top and bottom padding in the page hero to about 10% each.

    Then add this CSS:

    @media (max-width: 768px) {
        .page-hero {
            background-size: 100%;
        }
    }
    #636439
    Ravi Dixit

    It is working as you said, But there is another issue which is, when I add the CSS you given. it makes image fit to screen and when I adjust the heading as you given size above.

    Header text looks very small and image is too… it makes whole header very small…

    #636445
    David
    Staff
    Customer Support

    The image is wide but not very tall, so to make it fit 100% this is the unfortunate side effect. If you don’t mind losing some of the image off the edges then you can increase background-size over 100% and increase padding and H1 font size. But you cant make the image taller and 100% wide without distorting it.

    #637691
    Ravi Dixit

    Ok Understood.

    Thank You πŸ™‚

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