• Resolved havig

    (@havig)


    Hi guys,

    I know you add Sitelinks schema to all pages on a site even though Google states to show it only on the home page.

    I want to run a test with the markup on the Home Page only. I’ve checked quite a few sites that display the sitelinks search box and they only have the markup on their home page.

    None of my sites or even yours have sitelinks search boxes. And we have the code on every page. Even though it’s Google the one who determines who gets the sitelink search box (and in your case and a few of my sites that have a large amount of searchable content, I really wonder) I want to run this experiment.

    So.

    How can I remove the sitelinks markup from Yoast and only this markup?

    (I can add it to the home page manually – that’s not a problem)

    TIA!

    Havi
    PS: I promise to keep you posted of what I find.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Havi,

    Thanks for reaching out regarding the sitelinks schema. Yoast SEO does not have a feature in the plugin to remove sitelinks markup. However, the Schema API details all of the available customizations to modify, extend or remove pieces from our default schema output within the plugin – https://developer.yoast.com/features/schema/api

    I hope that points you in the right direction.

    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.

    Thread Starter havig

    (@havig)

    @devnihil for some reason I didn’t receive a notification for the first reply. Go figure.

    I checked the link you shared (that’s quite interesting so thank you) and I see under Other the following:

    disable_wpseo_json_ld_search – disables the search potentialAction that we add on every page if you simply return true on it.

    Should I add this filter to the functions.php like this?

    add_filter( ‘disable_wpseo_json_ld_search’, ‘__return_true’ );

    Or would I be missing out on something?

    Thank you in advance!

    Havi

    Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    Yes, that should just be the filter to add if you want to remove the search PotentialAction – https://developer.yoast.com/features/schema/api/#other-filters

    This is required markup for the Sitelinks Searchbox, but we’re not sure if this will influence the Sitelinks itself as Google does mention it’s a totally automated process.

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

The topic ‘Sitelinks Schema Question’ is closed to new replies.