New Landing How can we help? Themeforest Theme Support Pinpoint Implementing a maximum excerpt character length in the recent posts module

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Pinpoint
  • #1778
    Jakk
    Member
    Post count: 15

    Hi,

    I have a blog laid out with the recent posts module from the Swift Page Builder. I have found an issue with the basic formatting of the module whereby in a list of 8 blog posts some may get pushed down due to an inconsistent character length. I have attached an image showing this. Is there a way for me to edit a function in the editor to install a maximum character count of 98 in the excerpt so that all of the posts align consistently?

    Thank you for your help.

     

    Jack

    #1894
    Jakk
    Member
    Post count: 15

    Bump?

    #1896
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Jack,

    In functions.php line 728-730 you’ll fine:

    function new_excerpt_length($length) {
    	    return 60;
    	}
    

    You can increase it there, if you need to make it longer. Make sure you also have it set in the page builder block too.

    Hope that helps.

    – Ed

    #1898
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Addition:

    Ahh ok, I see the issue. What you’d be best off doing is setting the min-height for the recent posts, using some jQuery. Open up /js/functions.js and and find (should be line 430):

    var widgets = {
    	    init: function() {
    

    below, add this:

    jQuery('.recent-posts').equalHeights();
    jQuery(window).smartresize(function(e){  
    	jQuery('.recent-posts').equalHeights();
    });
    

    That will set the min-height so that they stick to the grid.

    – Ed

Viewing 4 posts - 1 through 4 (of 4 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