Support » Theme: Customizr » Sticky post without excerpt

Viewing 1 replies (of 1 total)
  • Hi,
    For showing empty excerpt for sticky posts on home page in alternate thumbnails view, add this code to the functions.php of the child theme.

    add_filter('the_excerpt','my_show_excerpt');
    function my_show_excerpt($content) {
    if (is_sticky()) 
    	return "";
    	
    return $content;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Sticky post without excerpt’ is closed to new replies.