WPSSO Social and Search Optimization (Strip Microdata)

This topic has 2 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Rose Tyler

  • Avatar: CMYKreative
    CMYKreative
    Participant
    October 16, 2017 at 06:50

    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?

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 16, 2017 at 12:42

    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.