How to Change HTML tag for Site Tagline?

From Astra customizer settings ( Customize > Header > Site Identity > Site Tagline ), you can add tagline for a site. A tagline is a small catchy descriptive line for your site.

Enable Tagline, Astra 3.0+

By default this tagline has paragraph tag <p> in HTML structure. You can change this tag to any other HTML tag using the following filter

add_filter( 'astra_site_tagline_tag', 'astra_change_site_tagline_tag' );

/* Function to change tag of Site Tagline.
@param string $tag Default is p tag.
function astra_change_site_tagline_tag( $tag ) {
$tag = 'h6';
return $tag;

1. Above filter will change <p> tag to <h6> tag. You can update it as per your requirement.
2. Paste the above code in the child theme’s functions.php file.

Default Tag

Tagline Default Tag, Astra 3.0+

Heading Tag after adding the Filter

Tagline Heading Tag, Astra 3.0+

Note: You can also replace the H1 tag with span tag using the below filter –

add_filter( 'astra_site_title_tag', 'astra_function_change_site_title' );

* Function to replace h1 tag with span in site title.
* @param string $tag This contains the tag used for site titles.
* @return string
function astra_function_change_site_title( $tag ) {
    $tag = 'span';
    return $tag;
Not the solution you are looking for? Check other articles, or open a support ticket.