Hi there,
In this category pagination, top text description is retrieved from the category description to all paginate pages ; which cause Google to target it as a duplicate content page.
https://todaycycling.com/cat/actualites-cyclisme/tour-de-france/page/2/
I posted something about this on the forum last year, with some code to add to the category and tag templates to add a ‘page x’ to the descriptions on the page and h1. I have no idea where that is now, but included the php code to fix that.
e.g.
Stuff About Bunnies – Page 2
and
Page 2 – Wonderful bunny category description page.
Hello,
If the category description is the one you are looking ro remove from different category pages, you will have to edit the category template files and wrap them in a condition to only show up on the main page: https://www.screencast.com/t/HevMlIvA
Thank you!
Hello,
I made it this way, here is my code if someone needs it:
<?php
class td_category_template_1 extends td_category_template {
function render() {
?>
<!– subcategory –>
<div class=”td-category-header td-container-wrap”>
<div class=”td-container”>
<div class=”td-pb-row”>
<div class=”td-pb-span12″>
<div class=”td-crumb-container”><?php echo parent::get_breadcrumbs(); ?></div>
<h1 class=”entry-title td-page-title”><?php echo parent::get_title(); ?></h1>
<?php global $paged; ?>
<?php if ($paged == 0) echo parent::get_description(); ?>
</div>
</div>
<?php echo parent::get_pull_down(); ?>
</div>
</div>
<?php
}
}