Shopify themes, liquid, logos, and UX
I am using the minimal theme and I would like to add a return button on the product page. It is even possible?
Best regards
Carla
Go to the Online store > Theme > Sections > product-template.liquid file and add following code where you want to add Back button.
<a href="javascript:history.go(-1)">back</a>
Cheers,
Tejas
This is a very easy and lazy solution. If people come on your webpage trough Google and you press something like "Back to shop" then nothing will happen, or atleast they wont be returned to the shopping page.
Hey Carla, where exactly did you add that code?
Thanks, Maynor
@Karllota wrote:
Dera Tejas, Thank you very much for your quick reply. I already done it,
and it is exacly what i wanted.
Best regards,
Carla
Everytime i click on the "Adidas" looking symbol, it takes me to a seperate page with options of where to go next. I would prefer it just be a dropdown with those same options. I would then like clicking on those dropdown options to take me to their own page. Any ideas how? I'm using "narrative" theme. Please and thanks!
Thank you so much! Is just what I needed too!!
Hi, where exactly did you add the code? I really appreciate it in advance.
Hi, I add it after below code, which make the 'back' appear after payment button
{% if section.settings.enable_payment_button %}
{{ form | payment_button }}
{% endif %}
</div>
{% endform %}
</div>
<a href="javascript:history.go(-1)" >back</a>
hope it helps!
How to I put "BACK" in a box and make it more visible?
User | RANK |
---|---|
214 | |
145 | |
66 | |
46 | |
45 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023