Home news section excerpt Length

By some reason the exverpt lengt is not the same in the Home news section. Any way I can controle this?
Screenshot 2020-08-26 at 10.17.29.png
2380 x 1574 - 2M
Tagged:

Comments

  • edited August 27
    Hi 
    Thanks for contacting to us. Actually this is happening bz  word size is different .
    Any way I trying to manage this case, Follow the given below instruction.

    Find the news-content1.php file located in your theme folder >> inc folder >> home-section  folder >> find the file.
    Open it and find the below line of code on line no 49.

    <?php the_excerpt();?>

    And replace the code of it with the code of below line.

    <?php
     $my_string = get_the_content();;
     echo implode(' ', array_slice(explode(' ', $my_string), 0, 25))."\n";
    ?>

    Change word length value 25  as your need.
    Let me know for any confusion.
    Thanks 
    Prime

  • HI 
    Did the above solution work for you ?

    Thanks 
Sign In or Register to comment.