How to Reduce the excerpt length in post

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

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #829 Reply
    Wayne
    Guest

    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
    Guest

    Thanks so much, I have solved the problem 😀

    #3959 Reply
    sneha
    Guest

    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 line, please add read more link.

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

    Thanks

    #29722 Reply
    asd
    Guest

    asdasdasd

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