How To Display Tagline in WordPress

Tagline is a single line description of your WordPress website or blog. In this post, we are going to learn to edit and display this tagline.

Quick Tip : Disabling Comment Notifications in WordPress

To add or edit the tagline follow the steps given below,

1. Login to your WordPress Dashboard.

2. Point the mouse over Settings option on left menu of the dashboard.

3. Click on General Settings option.

4. Look for tagline option and change it with your own custom tagline.

5. Hit Save Changes button.

Display Tagline in WordPress

Display Tagline in WordPress

To display the tagline on your website place the following code within your template file where you want to display it.

<?php bloginfo( 'description' ); ?>

Note : The above code will output i.e. echo the tagline. If you want to return the tagline to store it inside a variable, use the following code,

<?php echo get_bloginfo( 'description' ); ?>

 

2 Comments

  1. Haven’t been here in a while – love the site re-design. 🙂

    Also love how your posts are quick and to the point. This one’s a classic – question though, don’t we usually need to echo out “get” functions? So wouldn’t we use “echo get_bloginfo(‘description’)” instead?

    Reply

Leave a Comment.