pagination url not in anchor tag

#952776
  • Resolved Arien
    Rank Math free

    Hello,

    I found some text in your help files on this issue but still unsure what to do;

    I get an error from Screaming Frog for my homepage “pagination url not in anchor tag”

    It looks like there are 2 page’s found for my homepage, see sensitive area.

    As far as I know my homepage is only 1 page. Pls check for yourself.

    What can I do to repair this issue?

    Many thanks in advance for your help.

    Regards, Arien

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    We apologize for the issue you are facing regarding the "pagination URL not in anchor tag" error from Screaming Frog. This can occur if your homepage is set up in a way that creates multiple pages, which may not be properly linked with pagination.

    To address this issue, please consider the following steps:

    1. Check Your Homepage Settings: Ensure that your homepage is set to display a specific page under WordPress Dashboard > Settings > Reading. If it is set to display your latest posts, it may create pagination automatically.

    2. Review Your Theme and Plugins: Sometimes, themes or plugins can affect how pagination is handled. Make sure that your theme supports proper pagination and that there are no conflicting plugins.

    3. Add Pagination Links: If your homepage does indeed have multiple pages, ensure that the pagination links are included in the anchor tags. You may need to modify your theme’s template files to include these links correctly.

    4. Use Rank Math’s SEO Analysis Tool: You can analyze your site using Rank Math’s SEO Analysis Tool to identify any other potential issues that might be affecting your homepage’s SEO. More information can be found here: SEO Analysis Tool.

    If you continue to experience issues or need further assistance, please reply to this ticket, and a human agent from the Rank Math Support team will take over and provide more specific guidance based on your website’s configuration.

    Thank you for raising this concern, and we hope to help you resolve it soon!

    Sources:
    Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool

    Arien
    Rank Math free

    Hello,

    Many thanks for helping me with the pagination problem of the homepage.

    Under 1.of your mail I noticed it is now set to display latest posts and therefore I hope it would help to set a specific page as homepage.

    However my homepage is http://www.koffiekwaliteit.nl, but I cannot find it in the selectable pages!?

    https://www.dropbox.com/scl/fi/9z3jmew43enjcwkw310kk/Scherm-afbeelding-2025-01-19-om-14.50.59.png?rlkey=4m4xyudl26ixsulpx0114nnu8&dl=0

    The only way I can find my homepage is via theme settings of the mythemeshop theme Ecommerce.

    Hopefully you can help.
    Thanks in advance, Arien

    Hello,

    Your homepage is set to pagination, that’s why there’s a relative link added in the source code:
    <link rel="next" href="https://www.koffiekwaliteit.nl/page/2/" />

    However, you can use this filter to disable that on your homepage since it is not paginated and fix the issue in Screaming Frog:

    add_filter( 'rank_math/frontend/disable_adjacent_rel_links', '__return_true' );
    

    And here’s a guide to adding the filter to your website:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Hello,

    Thank you Reinelle,

    I have changed the rankmath-php file, however the warning has not disappeared.
    Or should I add the code to theme functions.php file?

    regards, Arien

    Hello Reinelle,

    I finally succeeded via FTP. Many thanks for your help!

    Arien

    Hello,

    Glad that helped.

    If you have any other concerns, please don’t hesitate to contact us anytime so we can assist you further.

    Looking forward to helping you.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘pagination url not in anchor tag’ is closed to new replies.