• Resolved adfisch

    (@adfisch)


    Dear SmartCrawl-team,

    again, thank you for your awesome plugin. I would like to make another suggestion for improvement and would appreciate your consideration:

    With the new Schema Types Builder, you have introduced a very powerful tool. Before the builder was introduced, SmartCrawl added an Article Schema markup to every single page. Since the introduction of the new builder, I find this default markup rather annoying because it adds unintended markup in addition to the custom built schema types. So it would be nice to be able to disable it (for all pages or conditionally, for example inside the Schema Types builder).

    Right now, the Article schema also includes organizational data like the customer support number, logo etc. This could be published independently (e. g. https://developers.google.com/search/docs/appearance/structured-data/logo?hl=en, https://developers.google.com/search/docs/appearance/structured-data/local-business?hl=en) so the information will still be available even when the Article Schema is gone.

    Also, I wanted to make you aware of a small bug in the “Types Builder”. When I add another rule and want to delete it, the X-Button only appears on hover. Unfortunately, the button itself seems not to be part of the hovered element. Thus, when you try to click it, the X disappears.

    Since I guess the above feature idea will take some time for consideration (if even introduced), is there a way to disable the default Article schema programatically in the meantime?

    Thank you very much for your time and support in advance. I really appreciate your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @adfisch

    I hope you’re well today and thank you for your feedback!

    As for the bug:

    I tested it and I can confirm the issue. I have already reported it to our SmartCrawl Team so developers will look into it and include fix in one of upcoming releases. Thank you for pointing it out!

    As for the schema/feature request:

    I’ve asked our SmartCrawl Team for additional insights on this and I’m waiting for their response. We’ll update you here soon with more information.

    Best regards,
    Adam

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @adfisch,

    The mentioned bug is already fixed with the latest version ie v 3.7.0. Please do update the plugin to the latest version and let us know if you have any further queries.

    Regarding the schema/feature request, our SmartCrawl team do see that such a feature would be handy and will be considering this down the plugin’s roadmap. At the moment, there isn’t any exact ETA.

    Seeing this mentioned feature has been acknowledged, we’re marking this as resolved for now. However, if you have any queries, please don’t hesitate to ask. Thank you for your understanding.

    Best Regards,

    Nithin

    Thread Starter adfisch

    (@adfisch)

    Hi @wpmudev-support8 and @wpmudevsupport11,

    thank you for your fast replies. I have one last question and would appreciate your help: Since there is no ETA on the ability to disable the default article markup, is there a way to programatically remove it?

    I know that I could deactivate the Schema module. However, this also prevents me from using the Schema Builder or Breadcrumb Feature. Thus, a code snippet for only disabling the article schema would be very handy.

    Thanks a lot.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @adfisch,

    Can you please try this snippet and see whether it helps?

    <?php
    add_action( 'plugins_loaded', function() {
    	if ( ! defined( 'SMARTCRAWL_VERSION' ) ) {
    		return; // SmartCrawl is not installed/enabled. 
    	}
    	add_filter( 'wds_schema_printer_schema_data', function(  $data, $entity ) {
    		if ( ! is_front_page() ) {
    			return $data;
    		}
    		$schema = array();
    		foreach( $data as $item ) {
    			if ( ! empty( $item['@type'] ) && ( 
    				'article' === strtolower( $item['@type'] ) || 'organization' === strtolower( $item['@type'] ) 
    			) ) {
    				continue;
    			}
    			$schema[] = $item;
    		}
    		return $schema;
    	}, 10, 2 );
    });

    You can apply the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,

    Nithin

    Thread Starter adfisch

    (@adfisch)

    Hi @wpmudevsupport11,

    thank you for your reply. I made a few adaptions and now everything works perfectly.

    Thank you for your help! 🙂

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

The topic ‘Feature Idea: Disable Default Article Schema’ is closed to new replies.