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
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
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
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>
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.