Shopify themes, liquid, logos, and UX
Hello,
I've done some research on the forum... but none of the proposed css code solutions worked for me or seemed to worked for others.
However I've figured it might be easier to create an alternate image with the wanted color to replace the original "follow on shop" button, which I thought might just be a png (why it might not be possible to alter the color with css only).
I've created an assets with the image in the codes, but i am not quite familiar with this process on shopify since i've only did it in squarespace before.
I would like to know if anyone would have a solution for a code to alternate the original button (image) with this image? Would be much appreciated
website: www.inprintstore.com pass: shiznitz
The process is the same for any site, just go to where your button is and right click and inspect. This is the dev tools and you need to click the select icon in the top left corner or just use cmd + shift + c and click the button. You will see the css styles on the side and what rules are being applied and from what file. From there it's a matter of going into your site's source code and updating that style. Many answers here on the forum are wrong, you don't need to use "!important" when writing css styles.
In the image you provided the css is in the small panes on the right, you should be able to click <style>. This means that on that page there are inline styles which just means there is css in a set of <style></style> tags. If the css was coming from a css file, there would be a link to that file instead of '<style>' and it would indeed show you in the file where it is. And another tip, when you have dev tools open, you can hit cmd + f to do a search
Yes i already got that much, but that didn't answer my question. Where can i find and edit those css codes in a set of <style></style> tags somewhere in the "edit code" then? I've found the .footer__follow-on-shop codes in the section-footer.css folder but nothing i've done there worked. I have very basic knowledge of html and css as you can see..
Is the follow on shop button coming from a third party app? If it is then you will need to find the code of that button in your theme's code and change it from there.
Hi @lplabranche,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
.follow-text {
background-color: black !important;
border-radius: 24px;
}
</style>
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕ .
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024