• Resolved John

    (@dsl225)


    Hello,

    I’m using this layout for a given page and wanted to know whether it is possible to replace the term “read more” at the end of the excerpt with 3 dots […].

    I don’t want to use the “read more” layout separate from “excerpt” layout because is creates an extra line and that would be too much just for 3 dots.

    Alternatively, maybe there is a way for adding […] at the end of excerpts without any link?

    The problem I see is that excerpts end somehow abrupt as they just end in the middle of words without any trailing characters.

    Thanks!

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

    (@pickplugins)

    Thanks for your post,

    Custom read more text only available in “Read More” item on layout editor,

    View post on imgur.com

    You can use display:inline-block; for both excerpt to make in same line.

    Regards

    Thread Starter John

    (@dsl225)

    Many thanks for this but it doesn’t seem to work for me.
    If I use “display:inline-block;” in both excerpt+read more I still get […] on a new line centered + bottom border, and if I use it only in excerpt I get also a new line and bottom border, simply aligned left as it should.

    I used this for excerpt:
    font-size:14px;display:inline-block;padding: 10px 0px 10px 0px;text-align:left;
    and this for read more:
    font-size:14px;display:block;padding: 10px 0px 10px 0px;text-align:left;

    and this is what I get.

    If possible, I would like to have the 3 dots attached to the end of the excerpt + to remove the bottom border (which does not show up when I use “excerpt with read more”.

    Hope I’m not asking too much…

    Plugin Author PickPlugins

    (@pickplugins)

    Can you please try with filter hook, please use “Excerpt with Read more” on layout editor

    
    function post_grid_filter_grid_item_read_more_custom_text($read_more){
        return '[...]';
      }
    
    add_filter('post_grid_filter_grid_item_read_more','post_grid_filter_grid_item_read_more_custom_text');
    

    Please use following code to your theme functions.php file.
    Let me know the result.

    Regards

    Thread Starter John

    (@dsl225)

    Awesome!
    That works really fine.
    Many thanks for your kind assistance!

    Plugin Author PickPlugins

    (@pickplugins)

    Glad to hear that,

    if you like the plugin and our support please submit us five star reviews on plugin page
    https://ww.wp.xz.cn/support/plugin/post-grid/reviews/

    Regards

    Thread Starter John

    (@dsl225)

    Done already!

    Plugin Author PickPlugins

    (@pickplugins)

    WOW, thanks a ton.

    Regards

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

The topic ‘“Excerpt with Read More” layout’ is closed to new replies.