Site logo

[Resolved] Content is missing padding on mobile

Home Forums Support [Resolved] Content is missing padding on mobile

Home Forums Support Content is missing padding on mobile

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2542893
    Philip

    I wanted full width for my posts with sidebars on either side, so I saw I had to create an element on that, which worked. However, on mobile view, the content container has no padding which I was hoping to fix. See sample link below in mobile.

    #2543152
    Ying
    Staff
    Customer Support

    Hi Philip,

    Full width layout removes the theme paddings, you will need to add paddings to your blocks or using CSS.

    Try this CSS:

    @media(max-width: 768px) {
    .full-width-content .site {
        padding-left: 20px;
        padding-right: 20px;
    }
    }
    #2543199
    Philip

    That worked great – thanks!

    #2543254
    Ying
    Staff
    Customer Support

    No Problem 🙂

    #2543438
    Philip

    Actually, for some reason while that works on Chrome it’s still having issues with Firefox (both on PC and mobile).

    #2543440
    Fernando
    Customer Support

    Hi Philip,

    For reference, can you provide the link to a page where we can observe this?

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2544188
    Philip

    Actually, sorry about that. It appears to be working now on other posts on Firefox. It might have been a cache issue.

    #2544723
    Fernando
    Customer Support

    I see. Glad it’s working now!

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