Topic: How to Reduce the excerpt length in post | WP Masonry Layout

How to Reduce the excerpt length in post

Home Forums Lite Version How to Reduce the excerpt length in post

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  Masonry Guy 1 year, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #829 Reply

    Wayne

    how do i reduce the lenghth of the post , can someone help me 🙂

    #835 Reply

    Masonry Guy
    Keymaster

    Hi Wayne,

    We use the except length as the default of wordpress. However, you can change the length by keeping this code in your functions.php

    add_filter('excerpt_length', 'my_excerpt_length');
    function my_excerpt_length($length) {
       return 20; // Change 20 to your desire length
    }

    Hope this helps.

    Thanks

    #841 Reply

    Wayne

    Thanks so much, I have solved the problem 😀

    #3959 Reply

    sneha

    how can i add read more link in post excerpt?? and i also want to add share buttons and copy this button in my masonry boxes. I am using free version of this plugin. can not afford pro…plz reply asap. thanks.

    #3985 Reply

    Masonry Guy
    Keymaster

    Hi Sneha,

    You need to edit this file. wp-masonry-layout/themes/default/layout.php. And under < ?php the_excerpt(); ?> line, please add read more link.

    But please avoid updating this plugin, if you do you will loose these custom changes.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to Reduce the excerpt length in post
Your information: