- This topic has 9 replies, 2 voices, and was last updated 5 years, 10 months ago by David.
-
AuthorPosts
-
May 28, 2018 at 10:48 pm #586749Guy
Hi There.
I wish to change the text of the pagination for “Next” and “Previous”
Only for mobile.
Is there any way I can do that through function.php?Thanks!
Guy
May 29, 2018 at 4:57 am #586929DavidStaffCustomer SupportHi, what would you want to change the text to?
May 29, 2018 at 5:00 am #586932Guyto “Next” and “Previous”.
without the name of the post Only on mobile since the names of the projects are too long for mobile…Thanks!!!!
May 29, 2018 at 5:33 am #586957DavidStaffCustomer SupportYou can try this:
@media (max-width: 480px) { .post-navigation .nav-previous .prev a, .post-navigation .nav-next .next a { visibility: hidden; font-size: 0em !important; } .post-navigation .nav-previous .prev a:after { content: 'Previous'; } .post-navigation .nav-next .next a:after { content: 'Next'; } .post-navigation .nav-previous .prev a:after, .post-navigation .nav-next .next a:after { visibility: visible; font-size: 16px !important; } .nav-next .next:before { content: ""; } .nav-previous .prev:before { width: 0px !important; } .nav-previous .prev .smaller { font-size: 0em !important; margin: 0 !important; } }
May 29, 2018 at 10:55 pm #587573GuyThank so much for your response.
I tried doing what you suggested, but then trying to fix the css was impossible.
The thing is that the “next” and”previous” are floating in a very strange place around there.
http://80.179.140.91/~sharon2/branding/mint-groupcondominium-servicestoronto-canada/Is there any way of doing that through a hook?
Thank again
Guy
May 30, 2018 at 2:26 am #587675DavidStaffCustomer SupportHi Guy, i will speak with Tom to see if it’s possible to hook a second filtered nav that is only displayed on mobile.
But in the meantime, if you want to just add the code i provided and i’ll take a look to see if i can align it for you. Let me know,
May 30, 2018 at 3:18 am #587710GuyI added. You can watch in on mobile…
May 30, 2018 at 5:12 am #587758DavidStaffCustomer SupportHi Guy, i have updated the code above, lost of ‘unpicking’ to do. So give that a shot and let me know.
May 30, 2018 at 12:24 pm #588170Guy.post-navigation .nav-previous .prev a, .post-navigation .nav-next .next a { visibility: hidden; font-size: 0em !important; } .post-navigation .nav-previous .prev a:after { content: '< Previous'; } .post-navigation .nav-next .next a:after { content: 'Next >'; } .post-navigation .nav-previous .prev a:after, .post-navigation .nav-next .next a:after { visibility: visible; font-size: 1rem; line-height: 1.5em; font-weight: 300; letter-spacing: 0.05rem; } .post-navigation .nav-previous .prev a:after{ position: relative; left: -35px; } .post-navigation .nav-next .next a:after { position: relative; left: 22px; } .nav-next .next:before { content: ""; } .nav-previous .prev:before { content: ""; } .nav-previous .prev:before { width: 0px !important; } .nav-previous .prev .smaller { font-size: 0em !important; margin: 0 !important; }
Solved 🙂 Thanks!!!!
May 30, 2018 at 1:35 pm #588222DavidStaffCustomer SupportHi Guy, that did take some ‘unpicking’ lol. Glad you found a solution!
-
AuthorPosts
- You must be logged in to reply to this topic.