Genesis: Remove everything Except Post Title – On Category View
add_action( 'loop_start', 'remove_content_on_category_pages' ) ;
function remove_content_on_category_pages() {
if ( is_category( '5' ) ) {
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
}
}
https://stackoverflow.com/questions/62482450/how-to-remove-excerpt-on-category-archive-page-in-genesis-framework remove read more in genesis theme archives page css mode .front-page-1 .entry-content a.more-link { border: none; color: orange; margin-top: 0; } // Remove read more add_filter( 'get_the_content_more_link', 'child_read_more_link' ); function child_read_more_link() { return; }
hhhh
wordpress remove excerpt on categories
the_excerpt() in these files. This is the function that generates excerpts.
// customize read more link
add_filter(‘the_excerpt‘, ‘rv’);
function rv() {
return ‘ ‘;
}
// Accessible read more links.
add_filter( ‘excerpt_more’, ‘studio_read_more’ );
add_filter( ‘the_content_more_link’, ‘studio_read_more’ );
add_filter( ‘get_the_content_more_link’, ‘studio_read_more’ );
//* Modify the length of post excerpts
add_filter( ‘excerpt_length’, ‘sp_excerpt_length’ );
function sp_excerpt_length( $length ) {
return 0; // pull first 50 words
}
css to disable read more on wordpress
display: none !important;
disable read more on geneis theme category pages
add_filter( ‘excerpt_more‘, ‘sp_read_more_link’ );
add_filter( ‘get_the_content_more_link’, ‘sp_read_more_link’ );
function sp_read_more_link() {
return ‘ ‘;
}
remove meta info from cateogry pages
singular remove short codes of cateogry or tags or use filters in functions php