Removing titles in Wordpress

46 views Asked by At

I have this website http://www.vocaloid.de/Wordpress/

and I try to remove the titles below the thumbnail on the home directory and on the category sites using this command:

if(is_home() || is_front_page() || is_category()) {
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );}

But somehow they do not get removed.. How can I fix this?

I checked the code and it is working fine without the if structure

2

There are 2 answers

2
aspencer8111 On

The quick and dirty way would be to css it out using:

h2.entry-title {
  display: none;
}
0
Coder828 On

You do not want to display:none; because that's bad for SEO. I recommend installing a Wordpress plugin called "Hide Page and Post Titles" to show/hide page titles.