Hi any help, please.
I am new to shopify, I am try to add two buttons to the header of the Sense Them, currently using version 10.0.0.
Website is not currently live.
I have researched and appears you need to look for the below text, but I cannot find this code within the Sense Code liquid files.
{% include ‘icon-search’ %}
Any help on where the code should go and in which file, would be very much appreciated.
Many thanks
To add two buttons to the header of the shopify sense theme, you will need to modify the theme code.
Online Store > themes
Actions > Edit Code
Sections> header.liquid file.
Find the section where you want to add the buttons. could be in the section or inside another container like
or .
Add the following code to create a button
{{ button_text }}
Replace button_url with the URL you want the button to link to, and button_text with the desired text for the button. Also, replace button-class with a class name of your choice for styling purposes.
Replace button_url with the URL you want the button to link to, and button_text with the desired text for the button. Also, replace button-class with a class name of your choice for styling purposes.
Customize the button’s appearance by editing the CSS. To do this, go to the “Assets” directory in the theme editor and open the “theme.scss.liquid” file.
Hey many thanks for your informative response, I am just struggling to find exactly where to place the button text within the Header.liquid file. Does not appear to be an obvious header section to place the code. I have tried a few locations with no success.
Apologies if this should be easy.