Visually hidden Site Title

Hey Guys,

I’d like to remove this line of code.

https://www.screencast.com/t/RcX27snkiut4

It’s the site title and it appears all over the site. It’s only an H1 code but it could affect the overall SEO since it is hidden.

Could you please help me out?

Hi There,

Thanks for writing in! First, you have to install and activate the child theme (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

After that, create _brand.php file in the following path : x-child/framework/legacy/cranium/headers/views/global/_brand.php

Then add the following code:

<?php

// =============================================================================
// VIEWS/GLOBAL/_BRAND.PHP
// -----------------------------------------------------------------------------
// Outputs the brand.
// =============================================================================

$site_name        = get_bloginfo( 'name' );
$site_description = get_bloginfo( 'description' );
$logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
$site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';

?>

<a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
  <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
</a>

Hope that helps.

Thank you! That worked perfectly!

You are most welcome. :slight_smile: