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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -