CSS Won't Hide Site Title/Tagline
-
Hi;
I’m trying to hide the site title and tagline but none of these work:
#wp_title, #$site_description {display: none;}
#site-title, #site-description {display: none; }
#site-title, #site-description { visibility: hidden;; }
#header #logo h1 a {display: none;}This is the header code in my site editor that I think deals with what to write in order to hide the site title and tagline:
<?php //Print the <title> tag based on what is being viewed
global $page, $paged;
wp_title( ‘|’, true, ‘right’ );
// Add the blog name.
bloginfo( ‘name’ );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( ‘description’, ‘display’ );
if ( $site_description && ( is_home() || is_front_page() ) ) echo ” | $site_description”;
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 ) echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘made’ ), max( $paged, $page ) );
?>Can someone PLEASE tell me what to put at the end of the style sheet to hide the site title and tagline from my site? I DO NOT want to delete the site title and tagline in my general settings because then it won’t show in the browser tab.
- The topic ‘CSS Won't Hide Site Title/Tagline’ is closed to new replies.