Advertisement
fahimmurshed

Remove hellip (three dots) from read more link

Oct 11th, 2022 (edited)
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. /* Remove hellip from read more link
  2. */
  3. function remove_helip_from_read_more( $output, $output_filter ) {
  4.  
  5.     $output = str_replace( '…', '', $output );
  6.     return $output;
  7. }
  8.  
  9. add_filter( 'astra_post_link', 'remove_helip_from_read_more', 10, 2 );
  10.  
  11. /* or you can try this */
  12.  
  13. function replace_content( $content ) {
  14.     $content = str_replace(array( '[…]', '[...]', '...' ), '', $content);
  15.     return $content;
  16. }
  17. add_filter('uagb_single_post_excerpt_grid','replace_content');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement