• Resolved mikeiskool

    (@mikeiskool)


    Hi there. I’m trying to remove the <link rel=”next/prev” /> code from my front-page but can’t figure it out. Is this possible? Currently it’s using /page/2 which is just the front-page again and we don’t want that! Any help is appreciated! Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I believe that’s part of WordPress, not the plugin.

    YOu might Google how to disable that on front page or all pages with a function.

    Thread Starter mikeiskool

    (@mikeiskool)

    Ok I’ll look into that. I assumed it was Yoast outputting it since it’s in the Yoast section of the source code:

    <!– This site is optimized with the Yoast SEO plugin v3.7.1 – https://yoast.com/wordpress/plugins/seo/ –>

    <link rel=”next/prev” href=”/whatever” />

    <!– more stuff –>

    <!– / Yoast SEO plugin. –>

    • This reply was modified 8 years, 4 months ago by mikeiskool.
    • This reply was modified 8 years, 4 months ago by mikeiskool.
    Thread Starter mikeiskool

    (@mikeiskool)

    Found a fix. This is what I added:

    function wpseo_disable_rel_next_home( $link ) {
         if (is_front_page()) {
             return false;
         }
    }
    add_filter( 'wpseo_next_rel_link', 'wpseo_disable_rel_next_home' );
    • This reply was modified 8 years, 4 months ago by mikeiskool.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove rel=”next” and rel=”prev” from front-page’ is closed to new replies.