[Improvement] Category pagination

Posted in: Newspaper
Post count: 30

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/

Post count: 23312

Hi,

Thanks for your suggestion. We will make some deeper investigations and if will need to make some improvements we will consider to fix it.

Thanks for the message!

Post count: 30

Hi,

Ok thank you, i am working with an SEO agency, i will have more to say in the following days, i will keep posting.

See you!

Post count: 9544

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.

Post count: 30

Hi Chris,

Do you have any link ?

Thanks

Post count: 9544

Was looking for it ! 🙂

Post count: 9544

Okay…. use this inside your h1 tag -and- h2 description if/then block,
on the ‘tag’ and ‘category’ templates to insert numeration;
test and adjust:

<?php if ( $paged < 2 ) { } else { echo (' - Page '); echo ($paged);}
?>

Post count: 30

Hi,

global $paged;

Does not work to get the matched pages in class td_category_template_1 extends td_category_template, missing something ?

  • This reply was modified 8 years by AlexSoyer.
Post count: 30

Anyone here ? 🙂

Post count: 22421

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!

Post count: 30

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
}
}

  • This reply was modified 8 years by AlexSoyer.
  • This reply was modified 8 years by AlexSoyer.
  • This reply was modified 8 years by AlexSoyer.
Post count: 22421

Thank you for sharing

Post count: 18

Thanks AlexSoyer 😉

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