Show Disable Previous Page Nav

Hi,

I am using eleven 40 Pro theme. I want to show Disable “Previous Page” pagination on homepage. As for example if I am on the homepage it only show next button.

Screenshot_51

How can I display “Previous Page” button on homepage without using plugin?

image

Can someone help me please?

Thanks & Regards
Abhishek

Without knowing your URL I cannot really give you exact code (And I do not use WordPress myself), but you could do it with JavaScript.

Like IF page 1 is selected, get the previous button and remove it

1 Like

You can use the filter functions to add and remove. See the Wordpress guide on this and should be pretty easy to do https://developer.wordpress.org/reference/functions/paginate_links/

1 Like

Thanks for the response. Personally, I don’t prefer to use JavaScript because of its slow page rendering speed.

Is it not possible using with PHP? I want to implement “Previous” pagination on 1st page and “Next” button on the last page.

Screenshot_56

The functions code shared is PHP, not JavaScript

1 Like

Sorry to say, I am a beginner to coding. I tried some codes in snippet as per your reference, didn’t work. :face_holding_back_tears: