• Wordpress 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]

Viewing 1 replies (of 1 total)
  • 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;
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Also Removes Breadcrumbs’ is closed to new replies.