WordPress.org

Forums

WordPress SEO by Yoast
Disable link rel="next" in home page (1 post)

  1. fassrl
    Member
    Posted 1 year ago #

    Hi,
    I want to disable the link rel=next but only in the home page,
    I tried to use this filter in the functions.php

    function wpseo_disable_rel_next_home( $link ) {
      if ( is_home() ) {
        return false;
      }
    }
    add_filter( 'wpseo_next_rel_link', 'wpseo_disable_rel_next_home' );

    It disables in the home page, but also in the category pages (menu at the top).

    How can I do?

    The website is at http://www.gruppofas.eu/test

    Thanks

    https://wordpress.org/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic