Shopify themes, liquid, logos, and UX
Hi everyone, I've seen other sites do this a lot and I think it looks really cool. I would like to re-upload my hero banner as a transparent background png and then insert code to add gradient from hex code #606C38 on a 90 degree angle downwards into hex code #283618.
The URL is alcatrazgear.com if you would like to inspect.
Solved! Go to the solution
This is an accepted solution.
Yes, you have to wrap the code inside the <style> tags. Sorry about that. Here is the revised code
<style>
#mainContent .hero {
background: linear-gradient(90deg, #606C38, #283618);
}
</style>
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hi @DaveyAlcatraz,
You can re-upload your image and then follow these steps to make the background a gradient
1, Navigate to Online Store > Themes > Edit Code.
2, Locate and open the theme.liquid file.
3, Paste the code snippet provided below right before the closing head tag, then save your changes.
#mainContent .hero {
background: linear-gradient(90deg, #606C38, #283618);
}
Like this
Here is the result
We hope this assists in resolving the issue.
If you find our solution helpful, kindly consider Liking and Marking it as Accepted. Thank you!
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hey, I appreciate your efforts but that didn't seem to work for some reason. Do I need to add <style> at the start and end?
This is an accepted solution.
Yes, you have to wrap the code inside the <style> tags. Sorry about that. Here is the revised code
<style>
#mainContent .hero {
background: linear-gradient(90deg, #606C38, #283618);
}
</style>
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hi, my apologies, I'm new to this. Thanks heaps for that.
You're welcome! 😊
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
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