I am using Dawn theme and would like to add an additional logo to my site navigation.
As you can see attached, the site has a logo top left, but I would like to add another clickable logo on the right (between Contact and the search icon). I only want this to show on desktop or wide screens, not mobile.
Hi Jaimeebrooks,
To achieve the clickable logo, you need to add an image and link to redirect after the for loop used for list items in header.liquid file
also this use media query to enable it only in Desktop mode
Do you have coding knowledge, for me to help you further I would require more info!!!
First, you need to upload the images that you intend to assign as the logo for your button header. To do that, first, go to the Content tab => select Files, then click the Upload Files button and select the image to upload.
After uploading the image, click on the Copy link button to get the cdn link of the newly uploaded image. This image link will be used in step 7 of my tutorial list so please pay attention to it
4. Find the base.css file in the Assets folder and add the following code at the end of the file to set position for custom btn :
.linkedin__icon {
margin-right: 10px;
}
We will start creating the button according to our wishes.
First, we need to create a file responsible for assigning a logo to the button. Go to the Snippets folder, choose to create a new file, name it so it’s easy to distinguish from the rest of the header buttons (eg Linkedin-btn, Instagram-btn…):
After finding the location of the header_icons element, insert the following code into the line below to complete adding the Linkedin button to the list of buttons in the header:
<!-- CUSTOM HEADER BUTTON -->
<a target="_blank" href="your_custom_url" class="linkedin__icon header__icon link focus-inset{% if section.settings.menu != blank %} small-hide{% endif %}">
{% include "Snippet_Btn_file" %}
</a>
<!-- END CUSTOM HEADER BUTTON -->
In this code, your_custom_url contains the url you want the button to point to, and Snippet_Btn_file is the file name that assigns the logo corresponding to each button that chungsta created in step 5.
=> After completing the above steps, our custom button will be displayed on the storefront: