• Resolved navso

    (@navso)


    Hi,

    I am using Yoast Version 16.1.1 and tried disabling the schema option using the add filter option provided in the documentation.

    add_filter( ‘wpseo_json_ld_output’, ‘__return_false’ );

    But it does not work. I tried main function.php as well as the one in a child but no luck.

    Any idea how to disable effetively

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support devnihil

    (@devnihil)

    @navso We tested this on version 16.1.1 using the Code Snippets plugin and it disabled the schema output as expected.

    If you clear your cache (server, plugin/theme, browser, or CDN such as Cloudflare) does this resolve the issue? If you are not sure how to clear your server cache you should speak with your host provider. We have information on how to clear your browser cache at the following link: https://yoast.com/help/how-to-clear-my-browsers-cache/.

    Thread Starter navso

    (@navso)

    I did not use code snippet but actually used it in functions.php. Cashing is also disabled. And if I deactivate Yoast, there is no schema code inserted so caching is not a problem.

    Also does the schema tab will be present if add filter is added?

    Plugin Support devnihil

    (@devnihil)

    @navso Yes the schema tab will still be present. The filter disables the schema output of the plugin, it does not disable the options related to schema in the Yoast interface.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Yoast Schema Disable’ is closed to new replies.