[Resolved] What is the process to put the rel = prev and rel = next tags in the blog?

Home Forums Support [Resolved] What is the process to put the rel = prev and rel = next tags in the blog?

Home Forums Support What is the process to put the rel = prev and rel = next tags in the blog?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #446061
    Fernando

    Hi,
    I am using GeneratePress + Elementor Pro. In the options of the blog of elementor pro I have put the pagination (https://www.jmpacheco.com/blog/), but when entering in page 2, and view source code, the tags rel = prev and rel = next aren’t shown as recommended by Google.

    This is an example of the source code of a blog that has what I want to do:

    <link rel=”canonical” href=”http://luismvillanueva.com/categoria/seo/page/3&#8243; />
    <link rel=”prev” href=”http://luismvillanueva.com/categoria/seo/page/2&#8243; />
    <link rel=”next” href=”http://luismvillanueva.com/categoria/seo/page/4&#8243; />

    Greetings!!

    #446537
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I think something like this would be better suited for a plugin. I believe Yoast SEO has it built in: https://yoast.com/rel-next-prev-paginated-archives/

    #446754
    Fernando

    Hi Tom,

    Yes, it seems that Yoast has implemented that function, but at least I don’t take it.
    I want to think that maybe it’s because I have blog posts through an Elementor widget, instead of taking them natively … ๐Ÿ™

    You should implement the function so that you can write on category pages as if they were pages. So then we should not do it this way …

    #447282
    Tom
    Lead Developer
    Lead Developer

    Something SEO related like this belongs in a plugin. You don’t want themes to have this kind of stuff in it, as it’s not something you’d want to lose if you ever change themes.

    GP also couldn’t recognize an archives page if you’re using Elementor – it would need to use the same logic that Yoast does, which relies on core WP functionality.

    #450005
    Fernando

    Ok thanks Tom!

    #450496
    Tom
    Lead Developer
    Lead Developer

    No problem ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.