Skip Navigation

[Resolved] Remove toolset-logo-white.png from header.php?

This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by julieP 7 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#525594

I'm using Toolset's Starter Theme (child). I'm not using the built-in customiser options for the header on my site (and don't want to!). Whilst developing the site, I've noticed via inspection tools that the default toolset white logo is still displayed as the code for it still resides in header.php:-

<div class="col-sm-3 logo col-xs-6">
<?php if(get_theme_mod( 'logo', get_template_directory_uri() . '/images/toolset-logo-white.png') != '') :?>
<a href="<?php echo esc_url( home_url() );?>"><img src="<?php echo get_theme_mod( 'logo', get_template_directory_uri() . '/images/toolset-logo-white.png');?>" alt=""></a>
<?php endif;?>
</div>

The log doesn't display because I have a white background but I feel very strongly that the presence of this image has a negative impact on my site where SEO is concerned.

I tried making some changes to this file and adding the altered file to my child theme but I received some 'headers already sent' errors in my debug.log file. I obviously didn't do it right!

How do I remove this (and preferably also the header image) please bearing in mind I'm not using and don't want to use the customiser)?

Thanks

#525602

Dear Julie,

You can create your own theme file to override theme file from parent theme files, for example, you can try this:
1) Copy theme file "header.php" from parent theme folder to the child theme folder,
2) Edit it, remove those codes you don't want.

More help:
https://codex.wordpress.org/Child_Themes

#525605

I thought I was quite clear that I've already tried this but got errors.

Can you please confirm which code I can remove without causing errors.

Thanks

#525655

Could you copy/paste the errors message to here?

If it is the other plugins/theme conduct the error message, please check this first:
deactivate other plugins and switch to wordpress default theme, and test again
We need to know if there is any other compatibility problem in your website.

In your case, it is depends on yourself, for example, you can start without PHP codes, just HTML codes, for example:

 
<div class="col-sm-3 logo col-xs-6">
</div>
#525771

Hi again

This is so weird; I was getting errors when I first tried this (albeit quite some time ago). I've tried it again today and no errors. I'll monitor things & if the errors come back, I'll open this ticket again.

Thanks for your help.