Hi,
I want the ‘shop collection’ button to be transparant (desktop and mobile) and ideally also move the button to the bottom centre (on mobile). How can I do this?
Using Craft theme.
URL: www.gojathelabel.com
password: awusau
A user seeks help making the ‘Shop Collection’ button transparent on their banner image for both desktop and mobile views. They also want to reposition the button to bottom center on mobile.
Site Details:
Solutions Provided:
Two developers offered CSS code solutions:
niraj_patel’s approach: Add custom CSS to theme.liquid file before the </body> tag to change button background to transparent and adjust mobile positioning
Raj-webdesigner’s approach: Insert CSS into base.css file targeting the banner button with transparent background and absolute positioning
Current Status:
The user tested one solution which successfully made the button transparent but unintentionally changed their custom font. Raj-webdesigner updated their code and asked the user to try the revised version. The issue remains unresolved as the user awaits a solution that achieves transparency without affecting other design elements.
Hi,
I want the ‘shop collection’ button to be transparant (desktop and mobile) and ideally also move the button to the bottom centre (on mobile). How can I do this?
Using Craft theme.
URL: www.gojathelabel.com
password: awusau
can you share you site url?
password: awusau
password: awusau
Hi @JasSet
Could you share your store URL and password?
Hello @JasSet
Can you share you store url?
updated in message!
See original message!
I put them in my post!
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
you can change position of button through the customizer.
Add This css in your edit code > base.css File
@media screen and (max-width:750px){
.banner .banner__box.content-container.content-container--full-width-mobile.color-scheme-2.gradient {
position: absolute;
bottom: 0;
}
/*If you want to keep the button like that then delete the below code*/
.banner a.button.button--primary {
background: transparent;
}
}
Hi, this did help with the transparancy but it did change my custom font.
I update This Code Please again Put.