Customize Posts Pagination

Posted in: Newspaper
Post count: 1

Hello!

I’ve been using the Theme for the past few days and it’s really good! I’m using this guide: https://forum.tagdiv.com/posts-with-pagination/ to add pagination to my posts and works wonderfully.

Now i want to customize that pagination so that it only shows “< Previous” and “Next >”. I can’t understand why editing the themes loop-single.php doesn’t work. All my posts are using the Default Template but nothing seams to work.

I was able to manage and remove all numbers from the pagination by adding a filter to “wp_link_pages_link” but for some reason I never receive the “Previous” or “Next” links in my filter, so i can’t edit them to add text to them o anything else.

What are my alternatives here? Shouldn’t it be using the single.php to render my posts?
What am i not understanding? Where does my confusion stems from?

Thanks!

  • This topic was modified 6 years by andres99x.
  • This topic was modified 6 years by andres99x.
Post count: 35449

Hi,

Is not working because is possible to not edit the correct file loop-single.php is in more theme folders, if you have the tagDiv Standard Pack enable in theme panel -> https://i.imgur.com/Drhxiof.png and the post style is set like this -> https://i.imgur.com/pAX1p0z.pngthen you need to edit the file from here -> wp-content/plugins/td-standard-pack/Newspaper/loop-single.php if the tagDiv Standard Pack is disable but you have the post style set on default, then you need to edit this file -> wp-content/plugins/td-composer/legacy/Newspaper/loop-single.php
Also maybe will be more simple to use a custom css to achieve what you need -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thank you!

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