WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
rel="next" and rel="prev" not working on Genesis homepage (2 posts)

  1. salsichad2
    Member
    Posted 1 year ago #

    I'm testing a new theme with Genesis Framework to update my site, but the problem is rel="next" and rel="prev" not working on Genesis homepage, but they work on tags or categories pages. I'm testint with the Genesis theme itself, not a child theme, and I notice that even the yoast.com homepage don´t have the rel="next" tag.

    Is that normal on Genesis?
    How can I fix that?

    Homepage

    <link rel="canonical" href="http://localhost/clube/?paged=2" />
    <meta name="robots" content="noindex,follow"/>

    Category Page

    <link rel="canonical" href="http://localhost/clube/?cat=8" />
    <link rel="next" href="http://localhost/clube/?cat=8&paged=2" />

    Thanks

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. salsichad2
    Member
    Posted 1 year ago #

    Ok, I found.

    class-frontend.php >> WordPress SEO Plugin

    // Don't do this for Genesis, as the way Genesis handles homepage functionality is different and causes issues sometimes.
    	if ( !is_home() || !function_exists( 'genesis' ) )
    	$this->adjacent_rel_links();

    I don´t know what kind of issues it can cause but a double slash solve my problem.

    // if ( !is_home() || !function_exists( 'genesis' ) )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic