badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Remove Three Dots from Post Excerpt

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #69323
    Mohsin
    Participant

    I recently removed the post excerpt from home page as well as category pages using below code

    function mytheme_custom_excerpt_length( $length ) {
    return 0;
    }
    add_filter( ‘excerpt_length’, ‘mytheme_custom_excerpt_length’, 999 );

    But it is still showing “…” three dots below Post Title so how i could i remove it permanently not only using CSS.

    Waiting for early response

    #69452

    Hello Mohsin,

    You only modify the excerpt length but not the excerpt more symbol, to remove the excerpt more symbol (…) use below function code.

    function mytheme_custom_excerpt_more($more) {
    	if ( !is_admin() ) {
    		return '';
    	}
    	return '';
    }
    add_filter('excerpt_more', 'mytheme_custom_excerpt_more');

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.