Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jmuller777

    (@jmuller777)

    no one? =}

    Thread Starter jmuller777

    (@jmuller777)

    =(

    Can you post a link to your site

    Thread Starter jmuller777

    (@jmuller777)

    I have a few, but it is not an issue and i dont think a link is necessary simple because theres nothing wrong with the plugin.

    I use genesis and by default the elements rel=”next” and rel=”prev” is disabled on home page, the navigation links 1,2,3…50 gets no rel=”next” and rel=”prev”.

    The class-frontend.php? has this function:

    public function adjacent_rel_links() {
                    // 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' ) && apply_filters( 'wpseo_genesis_force_adjacent_rel_home', false ) === false )
                            return;

    But the plugin has a filter, which is: wpseo_genesis_force_adjacent_rel_home that may be used to enable the markup also in the homepage.

    Added wpseo_genesis_force_adjacent_rel_home filter to allow forcing of rel=next / rel=prev links on the homepage pagination for Genesis users, they’re off by default.

    I just would lie to know how to make it work.

    I could just comment that line out of the class-frontend.php? but every time i update the plugin i would need to do again, so the use of the filter should be a best use.

    Anyone can please help me out on this?

    It’s actually quite easy… add the following to your (child-)theme’s functions.php file:

    add_filter( 'wpseo_genesis_force_adjacent_rel_home', 'my_genesis_show_rel_links' );
    function my_genesis_show_rel_links() {
    	return true;
    }

    Hope this helps & please mark the topic as resolved.

    Thread Starter jmuller777

    (@jmuller777)

    Thank you! =)

    Thread Starter jmuller777

    (@jmuller777)

    resolved

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Enable rel="next" on home page using genesis’ is closed to new replies.