New Landing How can we help? Themeforest Theme Support Dante Gaps between posts on Recent Posts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #125330
    cliffdugan
    Member
    Post count: 8

    Hello,

    I am currently developing a site with the Dante theme that I hope to take live this weekend. I am using the Recent Post Widget on their home page and it has started showing gaps between the posts.

    The settings: 3 columns, 12 posts, excerpt length: 20, category: all, offset: 0, order: descending

    The site only has 17 posts – when the site only had 15 posts, the gaps weren’t there. Interesting, if I set the offset to the number of posts over 15 (i.e. w/ 17 posts set offset to 2 – the problem goes away). Also, if I add a dummy post so there are 18 in total – the problem goes away – if the total number of posts is divisible by 3 there is no problem.

    Thanks for your help.
    Cliff Dugan

    #125355
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    My guess is it’s something to do with your custom css:

    /* Even out height in Blog and Recent Posts */
    .details-wrap h4, .details-wrap h5 {min-height:2.4em; max-height:2.4em; overflow:hidden;}
    .details-wrap .excerpt {min-height:5.5em; max-height:5.5em; overflow:hidden;}
    .masonry-items .blog-item .details-wrap {padding: 14px 15px 15px;} /* 28px 30px 30px */

    – Kyle

    #125380
    cliffdugan
    Member
    Post count: 8

    I disabled the custom css and the problem is still there. It is related to the number of posts being divisible by 3. I have several other Draft posts waiting to be enabled and if I enable them so the total number of Published posts is divisible by 3, the problem goes away.

    I found the php for the related posts in .\wp-content\themes\dante\swift-framework\page-builder\builder\shortcodes\recent-posts.php can you point me to the javascript that does the masonry layout?

    Thanks,
    Cliff Dugan

    BTW: I’m a developer and this is the 5th client that I’ve gotten to register the Dante Theme – the reason I have been able to do this, is that I told them your support was great – don’t disappoint me on this one.

    #125388
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Please try add this to your custom css:

    .recent-post.col-sm-4 {
      min-height: 440px;
    }
    

    – Kyle

    #125426
    cliffdugan
    Member
    Post count: 8

    That fixed it. Dante support comes through again.

    Thank you.
    Cliff Dugan

    #125428
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great 🙂 No problem

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register