Conversation
supportWordpress all up to date using the Sahifa theme. When I remove titles, the plugin is also stripping the title name out of the breadcrumbs. This I do not want. Advice? The page I need help with: [ log in to see the link]
If all you need to do is hide the title for all posts of a given post type , then you can this filter to your functions.php : function tt_hidetitle_class($classes) { if ( is_single() || is_singular( array( 'event', 'ebook', 'post', 'page' ) ) ): $classes[] = 'hidetitle'; return $classes; endif; return $classes; } add_filter('post_class', 'tt_hidetitle_class'); I use it for my custom post types (‘event’ and ‘ebook’). Just add or subtract post types as needed. You also need to add this CSS to your theme stylesheet: .hidetitle .entry-title { display:none; } This reply was modified 7 years, 5 months ago by criticaltinkerer . This reply was modified 7 years, 5 months ago by criticaltinkerer . This reply was modified 7 years, 5 months ago by criticaltinkerer .
If all you need to do is hide the title for all posts of a given post type , then you can this filter to your functions.php : function tt_hidetitle_class($classes) { if ( is_single() || is_singular( array( 'event', 'ebook', 'post', 'page' ) ) ): $classes[] = 'hidetitle'; return $classes; endif; return $classes; } add_filter('post_class', 'tt_hidetitle_class'); I use it for my custom post types (‘event’ and ‘ebook’). Just add or subtract post types as needed. You also need to add this CSS to your theme stylesheet: .hidetitle .entry-title { display:none; } This reply was modified 7 years, 5 months ago by criticaltinkerer . This reply was modified 7 years, 5 months ago by criticaltinkerer . This reply was modified 7 years, 5 months ago by criticaltinkerer .