No-index for Pagination Pages

Posted in: Newspaper
Post count: 26

Hello,

I would like to set noindex for pagination pages on both the mobile theme and the cloud template. Here are the steps I’ve taken so far:

Tried using hooks in functions.php.
Disabled indexing for pages in Yoast SEO settings.
Despite these efforts, the pagination pages are still being indexed. I suspect this issue might be related to how the theme generates pagination. Specifically, it seems that the following code isn’t working as expected:

if (is_paged() && !is_front_page())

Could you provide guidance on how to ensure pagination pages are set to noindex?

Thank you!

Post count: 35449

Hello,
The theme does not have an option for this, it can be done only with SEO plugins. From what I see the Rank Math has an option for this – https://rankmath.com/kb/how-to-noindex-paginated-pages/ but it seems that Yoast SEO doesn’t have, but it can be used a function like this one mentioned here – https://wordpress.org/support/topic/how-to-noindex-paginated-page-using-yoast/ the code can be set in functions.php in child theme.
I hope this will help you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.