How to put the logo on h1 in all the pages to improve SEO
Thanks!
Hey masplaconsulting,
I’m not sure I understand what you mean by that, do you want the logo inside an h1 tag?
Best regards,
Rikard
If that is.
Hi,
Try to add this code at the bottom of functions.php (located in Appearance > Editor) or you can edit this via ftp or cpanel:
function wrap_logo(){
?>
<script>
jQuery(window).load(function(){
jQuery('#header .logo a').wrap(function() {
return '<h1></h1>';
});
});
</script>
<?php
}
add_action('wp_footer', 'wrap_logo');
You may need to add this css code in Quick CSS (located in Enfold > General Styling):
#header .logo > h1 {
margin-bottom: 0 !important;
}
Let us know if it works :)
Best regards,
Nikko