Remove h1 class from logo

Hi,

I can’t find a topic related to this; I installed the child pro, but I don’t know which file I have to edit to remove the h1 class on logo.

Thank you

Hi There,

Please create this directory in your child theme: /framework/legacy/cranium/headers/views/global/

After that creating the _brand.php file with 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 it helps :slight_smile:

1 Like

Hi Thai,

it worked, thanks a lot!

You’re most welcome.

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