Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author PickPlugins

    (@pickplugins)

    Thanks for your post,

    There is a filter hook post_grid_filter_grid_item_excerpt

    you can use to filter excerpt.

    Please see the code here

    http://pickplugins.com/docs/documentation/post-grid/filter-hooks/filters-post_grid_filter_grid_item_excerpt/

    you need to add the code on your theme functions.php file to works.

    Let me know the result.

    Regards

    Thread Starter Sherry22

    (@sherry22)

    Did you get this working. I want have hard returns after excerpt lines
    and <p> but adding this code didn’t work

    Thread Starter Sherry22

    (@sherry22)

    I added this
    function post_grid_filter_html_media_extra($html_media){
    return ‘Before ‘.$html_media.’ After ‘;
    }
    add_filter(‘post_grid_filter_html_media’,’post_grid_filter_html_media_extra’);

    but In my excerpt I am not getting hard return
    or <p> working on site view.

    Plugin Author PickPlugins

    (@pickplugins)

    you need to customized code your own.
    try this,

    function post_grid_filter_grid_item_excerpt_extra($excerpt){
    
        return '<p>'.$excerpt.' </p>';			
    
      }
    
    add_filter('post_grid_filter_grid_item_excerpt','post_grid_filter_grid_item_excerpt_extra');
    Thread Starter Sherry22

    (@sherry22)

    sorry for the delay.. I just added this code to my functions file (customizr theme) but still not supporting <p> in my excerpt I have
    <p>line 1</p>
    <p>line 2 </p>

    etc any other ideas? thanks

    Hello,
    how can this post be resolved when we cannot see what measures had been taken to resolve the problem?
    Chris

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

The topic ‘html excerpt’ is closed to new replies.