[Resolved] Playing around with Customizer Added Margin

Home Forums Support [Resolved] Playing around with Customizer Added Margin

Home Forums Support Playing around with Customizer Added Margin

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #320422
    Sandee

    Hi,

    I am working on a site and just playing around with the customizer a bit. I was in the customizer to try to add a page header to the blog page. After doing that, I noticed my home page had added margins (top and bottom full width of the page, right full height of the page). This is the second time this has happened. Am I doing something wrong? How can I fix this and make sure it doesn’t happen again?

    Thank you!

    #320423
    Leo
    Staff
    Customer Support

    Hi Sandee,

    Blog page header shouldn’t be adding margin.

    Can you provide a link to your site? Thanks!

    #320429
    Sandee

    Sure — it’s https://my2911creative.staging.wpengine.com. I’m actually still playing around with customizer functions (this time with container width), and the margin shifted again.

    #320434
    Leo
    Staff
    Customer Support

    If you are using Beaver Builder then you shouldn’t have to play with GP’s container width too much.

    Try checking Full Width: https://docs.generatepress.com/article/page-builder-container/

    Let me know.

    #320436
    Sandee

    Actually, yes, that was set to FULL WIDTH. I wasn’t playing the container width on the home page. I was actually just in the customizer playing with the container width setting — I didn’t make any change at all to the home page, but the result is / was the added margin.

    #320437
    Leo
    Staff
    Customer Support

    Hmm can try setting the sidebar layout to content: https://docs.generatepress.com/article/sidebar-layout/

    and separating space to 0: https://docs.generatepress.com/article/separating-space/

    #320439
    Sandee

    That fixed it in the customizer view, but not on the page (even viewed via incognito and / or a different browser). This happened one time before, and I just started over again because I thought I’d made a mistake. Should I do that again?

    This is a multisite install if that matters.

    #320441
    Leo
    Staff
    Customer Support

    Any caching plugin?

    #320443
    Sandee

    No, no caching plugin. I do use Cloudflare for DNS management though I don’t think that matters on a staging server. Either way, I just enabled developer mode and cleared my browser cache once again.

    #320466
    Leo
    Staff
    Customer Support

    Usually it’s a caching issue if it works in the customizer view but not in live site. Perhaps server caching?

    I still see this CSS which is adding the margin:

    .right-sidebar.separate-containers .site-main {
        margin: 20px 20px 20px 0;
    }

    Could try this to remove it for now:

    .right-sidebar.separate-containers .site-main {
        margin: 0 !important;
    }
    #320492
    Tom
    Lead Developer
    Lead Developer

    I wonder why GP thinks the right sidebar is displaying when it’s not. Is your sidebar layout set to right sidebar?: https://docs.generatepress.com/article/sidebar-layout/

    #320679
    Sandee

    No, the sidebar layout is set to content (no sidebars), and the page builder container is set to full width.

    #320790
    Sandee

    Is there a way for me to fix this? I am trying to move on, but I’m a bit stuck until I can fix it since it is on the home page.

    Thank you!

    #320792
    Tom
    Lead Developer
    Lead Developer

    Is the on page sidebar layout option set to Default?: https://docs.generatepress.com/article/sidebar-layout/#different-sidebar-layouts-for-individual-pages-and-posts

    There’s no reason the .right-sidebar class should exist if the layout is set to no sidebars. I believe figuring this out will remove the gap.

    #320798
    Sandee

    Thanks for your response — I fixed this by removing a function I had added to force the 404 page to full width. I’ll have to figure out what I did wrong there, but for now, I’ve just removed it.

    Thanks for your patience! 🙂

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