How can i replace the learn more button with a jpg button as a picture?
www.soothetech.shop
Hello @rubi06 ,
To change the text with an image.
Edit button code and replace the text part ‘learn more’ with image element.
e.g
<img src=”your image path” alt=”alt-text” >
Regards
Guleria
Hi @rubi06 ,
You can replace the “Learn more” button with a JPG image button using a small change in the section code.
learn-more.jpg)Find the button in that section. It will look similar to:
<a href="{{ section.settings.button_link }}" class="button">
{{ section.settings.button_label }}
</a>
Replace it with:
<a href="{{ section.settings.button_link }}">
<img src="{{ 'learn-more.jpg' | asset_url }}" alt="Learn more" class="learn-more-img">
</a>
Add to your CSS file:
.learn-more-img {
max-width: 200px;
height: auto;
}
how to " Upload your JPG (example: learn-more.jpg)" ?
You can upload the JPG to your theme assets in a few steps:
Do you have another solution ?
It is not recommended to host such content outside of Shopify, if only because of loading times.
You can upload everything under Content > Files, and it will then be stored on Shopify’s CDN.