Support » Plugin: Yoast SEO » Yoast auto create breadcrambs schema even though I have disabled breadcrambs

  • Resolved kashift1624

    (@kashift1624)


    Hello!

    I am using the carbonate theme with a static homepage, I didn’t create a homepage with a name like we are creating in any page builder. the theme has functionality to show homepage directly without adding any page.

    I have also disabled the breadcrumbs option from the Yoast setting still creates breadcrumbs schema, after that, I have found this message in my search console “either name or item. name should be specified”.

    NOTE: I know Yoast is not able to find the name of the homepage but I don’t know how I can facilitate it. the theme doesn’t have any visible homepage. I can edit style sheets from their editor but I am not the technical guy to do that.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Priscilla Chapman

    (@priscillamc)

    Hi @kashift1624,

    We see that your homepage is set to display the latest posts instead of a static page. However, this should not cause a problem with the breadcrumbs and a missing name. Can you confirm that you have set an SEO title for the homepage by going to SEO > Search Appearance? The SEO title should appear under the Homepage section.

    We noticed that there is no Yoast schema data for the page, so there aren’t any Yoast breadcrumbs. You can disable only the Yoast breadcrumbs by adding code to your site. We have more details and a code example in the Yoast developer documentation: Removing schema graph pieces.

    Thread Starter kashift1624

    (@kashift1624)

    Thanks for your kind reply miss Priscilla Chapman.

    I am not creating any custom home page I just put default latest posts and I don’t have the option to add custom SEO that for that.

    Thread Starter kashift1624

    (@kashift1624)

    I Have also added this code n my functions.php file but sadly it didn’t work

    // functions.php
    add_filter( ‘wpseo_schema_graph_pieces’, ‘remove_breadcrumbs_from_schema’, 11, 2 );

    /**
    * Removes the breadcrumb graph pieces from the schema collector.
    *
    * @param array $pieces The current graph pieces.
    * @param string $context The current context.
    *
    * @return array The remaining graph pieces.
    */
    function remove_breadcrumbs_from_schema( $pieces, $context ) {
    return \array_filter( $pieces, function( $piece ) {
    return ! $piece instanceof \Yoast\WP\SEO\Generators\Schema\Breadcrumb;
    } );
    }

    Plugin Support suascat_wp

    (@suascat_wp)

    @kashift1624

    The code you copy-paste seems to be correct. As we tested with the default 2020 theme, the filter is working fine.

    add_filter( 'wpseo_schema_graph_pieces', 'remove_breadcrumbs_from_schema', 11, 2 );
    
    function remove_breadcrumbs_from_schema( $pieces, $context ) {
        return \array_filter( $pieces, function( $piece ) {
            return ! $piece instanceof \Yoast\WP\SEO\Generators\Schema\Breadcrumb;
        } );
    }
    Thread Starter kashift1624

    (@kashift1624)

    The filter is not working on the carbonate theme I need to downgrade Yoast to the 12.0 version hopefully new update of toast will resolve the problem.

    Plugin Support Michael Tina

    (@mikes41720)

    Hi @kashift1624

    Seeing that the filter is working with the default WP TwentyTwenty theme, but not your preferred theme, we recommend that you reach out to the theme developer for further assistance.

    You can check out our documentation here, should you need to use any filters or actions to make any modifications to the default output of our plugin – https://developer.yoast.com/

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Yoast auto create breadcrambs schema even though I have disabled breadcrambs’ is closed to new replies.