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.
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' ); ?>