[Support request] How to Remove Breadcrumbs and Sitelinks searchbox schema From Generatepress Them

Home Forums Support [Support request] How to Remove Breadcrumbs and Sitelinks searchbox schema From Generatepress Them

Home Forums Support How to Remove Breadcrumbs and Sitelinks searchbox schema From Generatepress Them

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2227871
    Himanshu

    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

    #2227913
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this is what you are looking for:
    https://docs.generatepress.com/article/generate_schema_type/

    Let me know if this helps 🙂

    #2227920
    Himanshu

    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

    #2227924
    Leo
    Staff
    Customer Support

    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.

    #2227928
    Himanshu

    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.

    #2228034
    Leo
    Staff
    Customer Support

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.