Site logo

[Resolved] Problem with comments section – strange gap

Home Forums Support [Resolved] Problem with comments section – strange gap

Home Forums Support Problem with comments section – strange gap

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #930379
    cmw

    Hi there,

    Is there anyone that knows why there is a strange section between my discus comments widget (happens the same with WP default comments) and my footer? How could I remove it?

    https://imgur.com/a/5lbpRKB

    It is not on Elementor so it is quite strange.

    Footer is created as a section and I tried to put negative margin on the top to cover that strange section in between but does not work.

    I am starting to think it comes from GP Premium template …

    Any idea?

    Appreciate it 🙂

    Many thanks.

    *** I updated the test URL ***

    #930410
    cmw
    #930576
    David
    Staff
    Customer Support

    Glad you found the solution

    #930875
    cmw

    Hi David,

    Well, I just updated the URL for my issue because it does not work. It was a quick fix but not a feasible solution as it only worked in very specific circumstances.

    I just attach a photo where you can see how the comments section of GP Premium generates a space between the main body of my page and the comments section. I am not good programming so I can’t guess where it comes from.

    I am using Elementor, and wpDiscuz to improve the basic WP comments form.

    https://imgur.com/a/ZaHodsQ

    Thanks for the help in advance 🙂

    Cmw.

    #930922
    Tom
    Lead Developer
    Lead Developer

    That’s happening because you’re using the “Separate Containers” option in Customize > Layout > Container.

    If you’d like to continue using that option but remove the bottom spacing on pages, you can try this:

    .page.separate-containers .site-main > * {
        margin-bottom: 0;
    }
    #931153
    cmw

    Hi Tom it’s me again,

    Amazing help. Thanks for the help !

    As you can see in the attached URL for my site, that gap is fixed. I only now have again the problem of my comments section duplicated.

    If I add the following code to general page CSS or page CSS I took from https://generatepress.com/forums/topic/removing-double-comment-boxes-gp-elementor/, I get no comments at all.

    .comments-area {
    display: none;
    }

    How can I do to load the comments from the Elementor shortcode (so I can put them where I want with the adjusted size and margins I want) and avoid the default comments to appear? Right now as you can see I have them duplicated.

    Many many thanks !!

    Long live to Generate Press 😉

    #931479
    Tom
    Lead Developer
    Lead Developer

    Try this:

    article + .comments-area {
        display: none;
    }
    #931596
    cmw

    Thanks Tom you are a genius !

    #931692
    Tom
    Lead Developer
    Lead Developer

    Glad I could help 🙂

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