Hi,
How do I add a button in the error search page just below the text Please try a different search term or go back to the homepage ?
I am using Plak
Thanks in advance
Hi @danielle12
Jasmine from Plak support here,
For Plak theme, in order to add a (return to the previous page ) button in the search page when no search is performed, please follow these steps :
- From your Shopify dashboard, click Online store > Actions > Edit code
- Open the file search.liquid
- Search this line (around line 41)
<p>{{ 'general.search.no_results_html' | t: link: routes.root_url }}</p>
- Add this code just below it
<a class="btn"href="javascript:history.go(-1)"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back To The Previous Page</a>
- Click Save
Below is how the button will look like
Let me know if you have any other questions,
Best regards,
Jasmine
Jasmine | Plak theme support
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as a Solved Solution
oh wow ! exactly what i was looking for and even better with the left arrow, PLAK THEME YOU ARE THE BEST 🙂 🙂
Cheers Jasmine !!
Thank you for the kind words, it is a pleasure to assist our merchants 🙂
Jasmine | Plak theme support
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as a Solved Solution
Welcome to the Shopify Forum Community provided by Plak ThemeLLC, a place where you can discuss about eCommerce and Shopify, solve technical issues, get help with Shopify Design, Apps integration, Marketing, Facebooks ad, Google ads and more.
Before posting, we invite you to read and follow the forum rules | We also support any questions related to Free Shopify themes :Dawn, Express, Minimal, Brooklyn, Narrative, Supply, Debut, Venture, Boundless and Simple