My client ask me to change the action of the prev-next arrows, so the right arrow call "Next" leads you to the next older project (instead of a newer one), and the left arros call "Previous" leads you to the next newer project. Change the direction of the arrows...
They are correct and in the way that WordPress require, so when you click Next it goes to a newer item, when you click previous it goes to an old one. It's the WordPress logic and there is not an option to revert them.
On our old theme versions, it was the way you are saying but we have changed that behavior because a lot of users wanted the default one that WordPress offers. You can see that other WordPress themes have the same logic too.
Anyway, If you want to reverse their order, then:
Please go to Appearance > Editor > and make sure that Theme Functions (functions.php) file is selected.
Then at the end of the current codes please add this PHP code:
Hi, guys:
My client ask me to change the action of the prev-next arrows, so the right arrow call "Next" leads you to the next older project (instead of a newer one), and the left arros call "Previous" leads you to the next newer project. Change the direction of the arrows...
Is it possible?
Thanks and best regards,
Sira
Hi Sira,
They are correct and in the way that WordPress require, so when you click Next it goes to a newer item, when you click previous it goes to an old one. It's the WordPress logic and there is not an option to revert them.
Best regards,
Laborator Team
Hi, Art:
Then just changing PHP? (wich is not a easy option for me lol)
Can't I change with CSS the right Next button to appear on the left, and also move the Previous button to the right?
Thaks again!
Sira
Hi Sira,
On our old theme versions, it was the way you are saying but we have changed that behavior because a lot of users wanted the default one that WordPress offers. You can see that other WordPress themes have the same logic too.
Anyway, If you want to reverse their order, then:
Please go to Appearance > Editor > and make sure that Theme Functions (functions.php) file is selected.
Then at the end of the current codes please add this PHP code:
Have a nice day!
Thanks, Ylli:
It worked perfectly, I added it in the functions.php file of the Theme Child :)
Have a nice day,
Sira
Happy to hear that
Have a nice day!
I will set this ticket as solved from here.