Adding Site Description

Site description plays an important role in the SEO point of view. So if your theme does not provide site description, don’t worry. You can do that manually by editing your header.php.

Please go to header.php and add this following code:

<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>

where you want to show the site description in your head. Generally it is added below the site title which looks something like this:

<h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php _ex( 'Home', 'Home pbanner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1>

and then you need to add this in your Custom CSS as per your requirement:

#site-description {
add your styles here
}

For more information please refer this: Codex

N.B:- Editing core files directly is not recommended as you will lose all your changes when you update your theme. So always use a Child Theme for doing any customization so that you can keep your changes safe in updates.

No Responses

Write a response