Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I'd like to add a 'contact us' button to a RTF page that I am building and would like to button to look in line with the rest of buy buttons in our store.
I have tried to create the button in an online button generator, but when I copy the code it doesn't work (see screenshot).
What do I need to do?
Thank you.
Solved! Go to the solution
This is an accepted solution.
You may have not placed the attributes used to style your button within the style tag.
Here is an example of valid code:
<div class="myButton"> <a href="./contact" class="button">Contact us</a> </div> <style> .myButton{ display:flex; align-items:center; justify-content:center } </style>
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hi @Olaf2
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
This is an accepted solution.
You may have not placed the attributes used to style your button within the style tag.
Here is an example of valid code:
<div class="myButton"> <a href="./contact" class="button">Contact us</a> </div> <style> .myButton{ display:flex; align-items:center; justify-content:center } </style>
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024