Hi, as my website has many published listings, and on mobile, after scrolling down the listings it is not easy to go back to the top of the page, I was wondering if it was possible to add a “back to top button”, such as a classic arrow button to go to the top of the page instead of scrolling up again.
Hi, this code snippet will take you to the previous page. But i think what you need is a button to scroll to the top. Maybe hivepress support team has a code snippet for that instead
Thank you very much. I will try that snippet. For a “back to top” button I downloaded the “To Top” plugin which worked perfectly!
I was just going to mention that one, I found it as well. Thanks!
is it a PHP snippet? because it does not seem to work I can’t see the button on my website
Yes it is a php snippet used with code snippet plugin. It works for me on listinghive, not sure with the other themes. You should see a back button on top, when the user is on the listing’s landing page.
oh now it is working thank you very much!!!
do you know how to put a back button that works on every page of the listing hive website? I would like the back button to appear on every page not just on the listing’s landing page. do you know something that might work?
Sorry I’m not a developer, Im just an average Joe, who has collected a list of code snippets from others on this forum.
Maybe hivepress support team can help you with that?
ahaha ok thank you very much!
You can try using WordPress hooks instead, e.g.
wp_footer to echo the button HTML in the website footer section, then it’ll be added to all pages.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.