• Hi. I am trying to remove the annoying “…” from my custom excerpts without removing my theme’s custom “view post” button. I’m trying to have just my subheading & javascript code as my excerpt rather than text from my post, which is the reason I need these ellipsis removed. I’ve already tried an advanced excerpt plugin, which corrects the error but removes my custom ‘view post’ button. Cannot seem to get it to work even when changing excerpt count to 0. My current code is:

    /* Replaces “[…]” with an ellipsis —————————————-*/
    function pipdig_auto_excerpt_more( $output ) {
    $output = ”;
    $output .= ‘… ‘ . pipdig_continue_reading_link();
    return $output;
    }
    add_filter( ‘excerpt_more’, ‘pipdig_auto_excerpt_more’ );

    Can view this issue @ https://myparisiennesoul.com/

Viewing 1 replies (of 1 total)
  • I use this function to modify my Read More buttons.

    function custom_excerpt_more() {
      global $post;
      return '<a class="excerpt-more" href="' . esc_url(get_permalink($post->ID)) . '">' . '...' . '</a>';
    }
    add_filter('excerpt_more', 'custom_excerpt_more');

    You can replace the ‘…’ part with anything you like and style the button using the excerpt-more CSS class.

Viewing 1 replies (of 1 total)
  • The topic ‘Removing ellipsis only from custom theme’ is closed to new replies.