[Resolved] Setting for page sections to center on home page.

Home Forums Support [Resolved] Setting for page sections to center on home page.

Home Forums Support Setting for page sections to center on home page.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #809925
    JB

    What setting will cause the contained page section to center like the header or footer? I am talking here about the home page, a page named mypage. I have been fighting this trying to get the sections on the home page to line up and I just have something set wrong.

    #809933
    Leo
    Staff
    Customer Support

    Hi there,

    It should be centered by default.

    It’s not centered because this CSS from SO-CSS:

    .grid-container.grid-parent.generate-sections-container {
        float: none;
        margin-right: 40px;
        margin-bottom: 20px;
        margin-left: 40px;
        text-align: center;
        vertical-align: middle;
        padding: 10px 0px 40px 15px;
        /* margin: 10px 0px 10px 10%; */
    }
    #809936
    JB

    Ok, thanks. This is left over from something I must have been doing at some point before. Thanks a bunch…..very stupid.

    #809939
    JB

    Why do the sidebars not show on the front page? (mypage)

    #810561
    Leo
    Staff
    Customer Support

    I can see sidebar on home page 🙂

    Have you fixed this?

    #810577
    JB

    I got the following reply after I found a snippet to fix it.

    This is me: add_filter( ‘generate_sections_sidebars’,’__return_true’ );

    I mean, really, Generatepress. Fix this.

    February 14, 2019 at 5:20 am #810181

    David
    Customer Support
    Hi there,

    glad to hear you found the solution and apologies it caused some frustration.

    Sections was designed as a very basic pagebuilder more for landing pages so it was built with Sidebars disabled. It was never envisioned that it would be used with one, but as always Tom added filters to make it possible.

    >>>> My comment is that if you have an option to select the layout with sidebars on a page and you use sections on the page, the appearance of the rendered page should respect the layout selection.

    Perhaps it says somewhere in big letters in the documentation “IF YOU USE SECTIONS ON A PAGE WE ASSUME YOU ARE USING IT FOR A LANDING PAGE AND WE DON’T RESPECT THE LAYOUT YOU CHOSE!”

    Or turn that off if you select Sections and put a hint where the layout is that says “Layout can’t use sidebars in a page with sections.”

    The thing is that you do allow sidebars with posts.

    I know the world is moving fast, and it’s impossible to cover all the bases, but your users waste time trying to figure out why something doesn’t work, when actually it is working as designed. (I ran a software company for 20 years.)

    So now I just want to figure out how to use the snippet only where I want, but, actually, I want a sidebar everywhere, except maybe Privacy and Terms.

    #810582
    JB

    I actually don’t like my selection about the warning where layout is, because if you override it like I am, it would still show the warning. Ah, no biggie.

    Thanks for your help. You folks give great support.

    JB

    #810587
    JB

    The reason I am using sections is to get a look that I want on the front page, with borders around the sections. Sections does it perfectly.

    #810594
    Leo
    Staff
    Customer Support

    Sorry for the confusion. This really hasn’t come up that much as most people who use sections do not want to use a sidebar.

    We will not be making more changes to the current sections module as the new WordPress Gutenberg editor basically does the exact same thing.

    Looking at your page, I would recommend you to check it out as you should be able to do the same thing with Gutenberg.

    Sections will be phased out slowly overtime.

    Just the world of software 🙂

    #810608
    JB

    Ok that’s important to know. The thing about Gutenberg is that it has some early stage shortcomings. So I will pitch sections and go Gutenberg, since that is the way you will be heading. Do you have a beta of your latest software that goes with Gutenberg?

    #810609
    JB

    Or does the current version work well?

    #810630
    Leo
    Staff
    Customer Support

    If you are using the latest versions for both free theme and premium plugin then it should work well.

    More info here: https://generatepress.com/gutenberg/

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