Si volem que l’encapçalament H1 de la web estiga més avall, Astra ens fica per defecte el <h1> en el “site_title”.
Per canviar-lo a <span> o qualsevol altra etiqueta, afegirem aquest codi al functions.php del nostre tema fill:
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;
}
Més informació: https://wpastra.com/docs/change-site-title-tagline-html-tag/