Shopify themes, liquid, logos, and UX
Hi there,
I've been trying to add a clickable business phone number to our website, but can't seem to have any luck.
I'd like it to be next to the left of the search icon.
Website for reference: www.mvmntsports.ca
Phone number: 604-889-8261
Theme: Streamline
Please help 🙂
Cheers,
Colby
You need to modify some code.
If you don't just add below JS
jQuery(".site-nav__icons").prepend('<a href="tel:604-889-8261" class="site-nav__link site-nav__link--icon js-modal-open-search-modal js-no-transition" aria-expanded="false">Phone</a>');
Thanks
Search with ".js" and you can see theme.js file. Open that and add code into that
If you don't find just add into theme.liquid with below code
jQuery(".site-nav__icons").prepend('<a href="tel:604-889-8261" class="site-nav__link site-nav__link--icon js-modal-open-search-modal js-no-transition" aria-expanded="false">Phone</a>');
Can you send me access your store on devangfour@gmail.com? Or you can WhatsApp me on +918511311811
Or send me screenshot of code
Thanx
Bottom of the theme.liquid put this code
<script type="text/javascript">
jQuery(".site-nav__icons").prepend('<a href="tel:604-889-8261" class="site-nav__link site-nav__link--icon js-modal-open-search-modal js-no-transition" aria-expanded="false">Phone</a>');
</script>
Sorry @ColbyCarter
But, I can't say more without checking the code design
Thank you
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024