php - how to show wordpress site title and tagline? -
i'm trying put site title , tagline in child theme header. searched , find these 2 different wordpress functions get_bloginfo() , bloginfo().
get_bloginfo()
doesn't showing tagline, , bloginfo()
showing both site title , tagline. problem bloginfo()
removing :
, space between site title , description.
<title><?php bloginfo( 'name' ) . ' : '. bloginfo( 'description' ); ?></title>
title: websitethis example website.
you can see there no space between website
, this
.
so possible show site title , tagline space , :
?
try
<title><?php echo get_bloginfo( 'name' ) . ' : '. get_bloginfo( 'description' ); ?></title> echo get_option('blogname'); // site name echo get_option('blogdescription'); // tag line or description
Comments
Post a Comment