Text logo and image logo appear at the same time

Hi
I have a problem with my website showing both my text logo and my image logo at the same time.
I have tried inserting the following code (with the “a” prior and without) and the result is the same

I have added the code and I still have both the text logo and the image logo, I have lowered the pixel size and the height and both the image logo and text logo appear at the same time, this makes my website look bad

Can someone help me please?
site:

you wont see the text it is in black as is the header
attached screen shot of the selected text

I solved it by talking to my hosting company
There was an error they fixed.
Sorry for the inconvenience

Hello There,

We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!

Best Regards.

How did you manage to get both the logo image and text visible? Actually this is what I want.
As I see, x-brand.text is not just switched off in css, it has to be edtited in the template.

Hi @Hoppy,

Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

Then navigate to your child theme’s /framework/legacy/cranium/headers/views/global directory create a file named _brand.php and paste the code below:

<?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 . '">';

?>

<?php echo '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>

<a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
  <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
</a>
<span class="x-desc">The site description!</span>

Hope it helps :slight_smile:

Thanks @thai, this is not exactly what I wanted, so I added this line to the template:

<a href="<?php echo home_url( '/' ); ?>" class="x-brand text" title="<?php echo $site_description; ?>" style="outline: none;"><?php echo $site_name; ?></a>

You are most welcome. Glad to hear that you made the customisation as per your requirement. :slight_smile:

Should I create the folders? There is only ‘frameword/views’ in my latest pro-child theme.

Hi Jayson,

You can create folders in your child theme, please remember that we don’t provide any issues related to the modified child theme or custom coding.

If you have any further queries, please create a separate thread for that.

Thanks