Liquid, JavaScript, themes, sales channels
Hi every one,
How can I add a non-structured component in the shopify theme i choose,
I need to add a phone number in the top of the website and it has to be prominent.
thank a lot
Irit
Hello @Renaye
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code after <body>
<div class="gp-custom-phone">
<a href="tel:0987654321">My Phone 0987654321</a>
</div>
<style>
.gp-custom-phone {
background: #ff0000;
text-align: center;
}
.gp-custom-phone a {
color: #fff;
text-decoration: none;
font-size: 20px;
font-weight: bold;
}
</style>
Result like this
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
User | RANK |
---|---|
24 | |
23 | |
12 | |
9 | |
8 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023