This topic has 2 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Rose Tyler
We are running a number of WPSSO plugins to get the markup correctk, and it’s asking us to add teh following code
<?php do_action( ‘add_head_attributes’ ); ?>
into the header.php file as follows:
<HEAD <?php do_action( ‘add_head_attributes’ ); ?>>
When we do this, it works correctly and strips out the duplicate tags as expected, however when interior pages are loaded, the site description gets added into the top of the site (home page is ok).
Any ideas why this isn’t functioning as expected?
Also, we aren’t using WooCommerce currently in this website … plugin is disabled and theme options all disabled, but their is still WooCommerce code being added into the site … how do we remove/disabled it entirely so that no additional code is added?
Hello,
1. Please try to add
function et_insert_fb_in_head() {
return;
}
in functions.php of child theme
and in header.php of child theme add <?php do_action( ‘add_head_attributes’ ); ?>
https://prnt.sc/gy1bjv
2. Could you explain what exactly code do you mean?
Regards
You must be logged in to reply to this topic.Log in/Sign up