Site Name showing as hidden H1/H2 tag in posts / site wide


I would like to remove the site title from showing as a H2 tag in my posts.



Hey Jack,

Did you add any custom code on the site? Please try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If the issue persists, remove all your custom code added on the site.

In case you are not able to get it to work,please provide us with the admin access to your site in a Secure Note:


Thanks for your reply

I must have added some code but can’t recall where I placed it.

Can you tell me where the php file paths could be for this header from the appearance editor section?

I’ve gone through as many as i can think it would be but can’t locate it.

It’s showing as a visually hidden title when inspected the post page via ‘view page source’.

How do I remove this from appearing on my posts?

> <div class="x-navbar-wrap">
>     <div class="x-navbar">
>       <div class="x-navbar-inner">
>         <div class="x-container max width">
> <h2 class="visually-hidden">New Online Poker</h2>



I’ve sorted it…

X: _brand.php (framework/legacy/cranium/headers/views/global/_brand.php)

Then add this -

$option_logo_text = x_get_option( ‘x_logo_text’ );
$option_logo_src = x_get_option( ‘x_logo’ );
$logo_text = ( empty( $option_logo_text ) ) ? get_bloginfo( ‘name’ ) : $option_logo_text;

if ( empty( $option_logo_src ) ) {
$logo_output = $logo_text;
} else {
$logo_src = x_make_protocol_relative( $option_logo_src );
$logo_output = ‘' . $logo_text . '’;

if ( x_get_option( ‘x_logo_visually_hidden_h1’ ) ) {
echo ‘

’ . $logo_text . ‘



<?php echo $logo_output; ?>

Hi Jack,

Glad to know you were able to wort it out.

Have a great day! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.