[Resolved] Extra line break after removing nav links

Home Forums Support Extra line break after removing nav links

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1505724
    Kristian Foshaug

    Hi,

    I recently upgraded to the latest version of GP from 2.x something. After this upgrade, I notice that some of the posts (which originally have several pages, and nav-links) has an extra line break. I removed the nav links in the CSS as we don’t want them to display on the frontpage, but it seems that they still appear differently than the other posts.

    The HTML-code is different for the posts with the problems (basically all posts with “Fredagsquiz”) – this seems to be in the HTML for those specific posts:

    <div class="page-links">Sider: <a href="https://spillhistorie.no/2020/10/23/fredagsquiz-kan-du-identifisere-disse-dos-spillene-2/" class="post-page-numbers">1</a> <a href="https://spillhistorie.no/2020/10/23/fredagsquiz-kan-du-identifisere-disse-dos-spillene-2/2/" class="post-page-numbers">2</a></div>

    Here is the CSS where I’ve tried to disable it:

    div.page-links { 
      display:none;
    
    }
    .post-navigation {
        display: none;
    }

    Link to Image showing the issue:
    https://imgur.com/a/CqJ6EVo

    Site: http://www.spillhistorie.no

    #1505903
    David
    Staff
    Customer Support

    Hi there,

    GP strips out the bottom margin of the last element paragraph tag in the entry content. But this doesn’t apply as the P element in those posts are not the last element.

    Try adding this CSS to fix that issue:

    .generate-columns-container .entry-content>p {
        margin-bottom: 0;
    }
    #1505985
    Kristian Foshaug

    That worked like a charm – thank you!

    #1506161
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.