• Resolved muckidee

    (@muckidee)


    Hi,
    I have two questions:

    1. I also use the schema plugin. I don’t want the author to appear. How can I deactivate the Markup with the Plugin?

    2. how can I mark-up my Q&A ( Question & Answer ) for schema?

    Thanx

    • This topic was modified 6 years, 3 months ago by muckidee.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Hesham Zebida

    (@hishaman)

    Hi,

    1- Author markup is required, removing it may cause errors in Google Structured Data Testing Tool. However; you can use a snippet like this in your Theme’s functions.php file to remove it:

    add_filter('schema_output', 'schema_wp_extend_output_98734525634');
    /**
     * Remove Author markup from Schema Output
     *
     * @since 1.0
     */
    function schema_wp_extend_output_98734525634( $schema ) {
    	
    	if ( empty($schema) ) return;
    	
    	// Unset author markup
    	unset($schema['author']);
    	
    	return $schema;
    }

    2- I’ve answered to a similar question here.

Viewing 1 replies (of 1 total)
  • The topic ‘Author Dissable & Q&A Markup’ is closed to new replies.