• Hi everyone,

    I’d like your help on removing the three dots that are displayed about the ‘Read More’ link for an excerpt on the homepage. I’ve tried a couple of codes already in my theme’s functions.php file, but none of them worked. Below you’ll find two of the codes I’ve tried already. Do you have any other tips or code snippets that I can try out?

    My theme is Foodie Pro.

    Really appreciate your help.

    Thanks and best regards,
    Ramona

    /*
    * Remove helip from read more link
    */
    function remove_helip_from_read_more( $output, $output_filter ) {

    $output = str_replace( ‘…’, ”, $output );
    return $output;
    }

    add_filter( ‘astra_post_link’, ‘remove_helip_from_read_more’, 10, 2 );`

    /*
    * Remove three dots from read more link
    */
    function replace_content( $content) {
    $content = str_replace(array( ‘[…]’, ‘[…]’, ‘…’ ), ”, $content);
    return $content;
    }
    add_filter(‘the_content’,’replace_content’);

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • try:

    function new_excerpt_more($more) {
      global $post;
      remove_filter('excerpt_more', 'new_excerpt_more'); 
      return '';
    }
    add_filter('excerpt_more','new_excerpt_more',11);

    If not, also try upping the priority (the 11) to a higher number. If that doesn’t do it, your theme “might” be doing something custom. Since you paid for the theme, ask their support.

    Thread Starter plantydelights

    (@plantydelights)

    Thanks a lot for your fast reply. I just tried it, unfortunately, it doesn’t work (also upped the priority). Will turn to the theme support next.

    Cheers,
    Ramona

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove three dots above ‘Read More” link on homepage’ is closed to new replies.