Reply To: Remove three dots (…) from masonry

Home Forums Support Remove three dots (…) from masonry Reply To: Remove three dots (…) from masonry

Home Forums Support Remove three dots (…) from masonry Reply To: Remove three dots (…) from masonry

#91765
Tom
Lead Developer
Lead Developer

Try this instead:

add_action( 'after_setup_theme','tu_remove_read_more' );
function tu_remove_read_more() {
    remove_filter( 'excerpt_more', 'generate_blog_excerpt_more', 99 );
    remove_filter( 'the_content_more_link', 'generate_blog_content_more', 99 );
}

add_filter( 'excerpt_more', 'tu_blog_excerpt_more', 99 );
function tu_blog_excerpt_more( $more ) {
    if ( ! function_exists( 'generate_blog_get_defaults' ) )
        return;

    $generate_settings = wp_parse_args( 
        get_option( 'generate_blog_settings', array() ), 
        generate_blog_get_defaults() 
    );
	
    // If empty, return
    if ( '' == $generate_settings['read_more'] )
        return;
		
    return '... <a title="' . esc_attr( get_the_title() ) . '" class="read-more" href="'. esc_url( get_permalink( get_the_ID() ) ) . '">' . $generate_settings['read_more'] . '</a>';
}

add_filter( 'the_content_more_link', 'tu_blog_content_more', 99 );
function generate_blog_content_more( $more ) {
    if ( ! function_exists( 'generate_blog_get_defaults' ) )
        return;
    $generate_settings = wp_parse_args( 
        get_option( 'generate_blog_settings', array() ), 
        generate_blog_get_defaults() 
    );
	
    // If empty, return
    if ( '' == $generate_settings['read_more'] )
        return;
		
    $more_jump = apply_filters( 'generate_more_jump','#more-' . get_the_ID() );
		
    return '<p class="read-more-container"><a class="read-more content-read-more" href="'. get_permalink( get_the_ID() ) . $more_jump . '">' . $generate_settings['read_more'] . '</a></p>';
}