• Resolved luremarketing

    (@luremarketing)


    Hello, love the plugin! Very easy to use. When using the structured data testing tool I noticed something though. I use the DIVI theme, which uses shortcodes to structure the pages.

    The description tag that is included using your plugin therefore starts with a bunch of shortcodes before the actual description of the page. Is it possible to either filter out shortcodes when building the description tag or give users the option to override the description tag entirely?

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

    (@hishaman)

    Glad you like the plugin.

    There is a way to overcome that using a filter to override the description output, you can use something like:

    add_filter( 'schema_output', 'schema_wp_override_description_yoast_seo_56398955' );
    /*
    *	Override description in Schema plugin
    */
    function schema_wp_override_description_yoast_seo_56398955( $schema_output ) {
    	
    	// override the values in schema output
    	$schema_output["description"] = 'Your own description goes here...';
    	
    	// return our schema array
    	return $schema_output;
    }

    Also, here is a couple of other ways to overcome this issue:

    Using Post Meta Generator for Headline and Description
    Use Yoast SEO Title and Description in Schema Output

    I will also look at it when I have a chance, maybe I can fix this win the core.

    Thread Starter luremarketing

    (@luremarketing)

    Thanks for the detailed response! Using the Yoast Title and Description worked perfectly.

    Plugin Author Hesham Zebida

    (@hishaman)

    Great!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue When Using The DIVI Theme’ is closed to new replies.