How to Reduce the excerpt length in post

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

Tagged: 

  • This topic has 5 replies, 1 voice, and was last updated 10 months ago by asd.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #829
    Wayne
    Guest

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

    #835
    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
    Wayne
    Guest

    Thanks so much, I have solved the problem 😀

    #3959
    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
    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
    asd
    Guest

    asdasdasd

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Lite Version’ is closed to new topics and replies.