Shopify themes, liquid, logos, and UX
I'm trying to add a button under a product thumbnail. We sell books and including a chapter preview is vital to converting readers.
Here's an example from a major bookstore:
I've figured out how to add a preview to the backend when setting up a product through a dynamic metafield and added the code for the pop-up box to the theme.css. However, I can't figure out how to get the button code underneath the picture.
I tried to include it in the product-thumbnail.liquid and it technically worked, but it mucked up the whole page:
I'm not sure if it's in the wrong place or if something else need to be adjusted so it doesn't center the book above the product info (Normally, our product picture is on the left and the product information on the right).
We're using the Dawn theme.
Any ideas?
Solved! Go to the solution
This is an accepted solution.
When seeking help ALWAYS provide relevant information to reproduce or inspect the problem so other people are not flying blind.
Store url, example code, any reference tutorials used, etc.
https://community.shopify.com/c/shopify-design/help-us-help-you/td-p/668159
This is an advanced theme customization.
If the theme is broken that will complicate it even more for someone to try and fix it externally without directly interacting with the code.
Make sure to have a backup theme and be familiar with rolling back such mistakes.
You may be much better off just using a custom-liquid block in the product section to place a preview on the leftside of the design at the top over other blocks.
Contact [email protected] for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
This is an accepted solution.
When seeking help ALWAYS provide relevant information to reproduce or inspect the problem so other people are not flying blind.
Store url, example code, any reference tutorials used, etc.
https://community.shopify.com/c/shopify-design/help-us-help-you/td-p/668159
This is an advanced theme customization.
If the theme is broken that will complicate it even more for someone to try and fix it externally without directly interacting with the code.
Make sure to have a backup theme and be familiar with rolling back such mistakes.
You may be much better off just using a custom-liquid block in the product section to place a preview on the leftside of the design at the top over other blocks.
Contact [email protected] for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Hello @starlit2017 ,
You can try to follow these steps:
<div class="product-thumbnail__buttons">
<a href="{{ product.url }}" class="button">View Product</a>
</div>
Hope this can help you out.
Ali Reviews team.
Hi,
I have a website that sells books. I am on the first step on creating a popup that shows the inside images. How were you able to accomplish that?
A popup for an image gallery is often referred to as lightbox in UI parlance.
That's beyond the scope of this post.
It's an advanced customization or needs an app if the theme being used doesn't already have that feature.
Contact [email protected] for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024