Site logo

Archived topic

How to Remove Breadcrumbs and Sitelinks searchbox schema From Generatepress Them

5 replies · Started by Himanshu on May 21, 2022

Viewing posts 1–6 of 6

Hi All,

I have a Site and installed Generate press theme.

Now After added schema i found two default schema coming from theme which is "Breadcrumbs and Sitelinks searchbox schema".

Now i want to remove this Default schema and implement FAQ and Article schema on my Blog.

For Reference Here is my site link: https://cashappquery.com/ And https://tsgpchelp.com/

Please Help me out to remove this default schema.

Thanks

Hi,

Thanks For Reply,

I Tried to add that Code on Premium GP theme. But it wont affect.

Can you suggest me which line i can add this code on Functions.php.

Thanks

It's never a good idea to modify the theme's core files.

Try one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/

If it doesn't work then the schema you are referring to is likely coming from another plugin.

The theme doesn't have option to add breadcrumbs.

Though i am Noobie on codeing.

Here is the Code i found from your Source.

Can you Tell me Whats wrong on this code.

add_filter( 'generate_schema_type', '__return_false' );
function example_function_name()
{
return 'false';
}

Waiting for your reply.

You only need this line:
add_filter( 'generate_schema_type', '__return_false' );

And add it using one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/

The Code Snippets plugin is the easiest if you aren't using a child theme already.

This archived topic is closed to new replies.