Jump to content

ADD A TEXT LINK BESIDES (LEFT SIDE) HAMBURGER ICON MENU

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.martaalonso.design/interiorismo

Hi everyone! 

I use the business plan and the clay template. I used a lot of css also to keep the hamburger icon instead of the classic word listed link menu.

But now, I would like to add 3 words besides (left side) the humburger icon, those words/links will be:  online domestico comercial  (each one linked to their own url) Can anyone or @tuanphan help me, please!!! 

Thank you so much!

Marta

Link to comment

For desktop only or all devices?

2 options to do this

O1. We will use script code to add links. You will edit text/link in Code Injection

O2. You add 3 text links in Site Footer, then we will use code to move to left side of burger

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
16 hours ago, MADESIGN said:

Thank you @tuanphan! Sorry I didn't said anything before. I think a we can add a text whith link left side of burger but new, so we keep the ones at the footer. How can I do that? Thank you!!!!!!

 

You mean do option 1?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Solution
13 hours ago, MADESIGN said:

yes @tuanphan! Thankyou!

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$('<ul class="tp-links"><li><a href="https://google.com">Online</a></li><li><a href="https://google.com">Domestico</a></li><li><a href="https://google.com">Commercial</a></li></ul>').appendTo('[data-nc-container="top-right"]');
	});
</script>
<style>
  ul.tp-links {
    padding-left: 0 !important;
    list-style: none;
    display: flex;
    align-items: center;
}

ul.tp-links li {
    margin-right: 2vw;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
46 minutes ago, MADESIGN said:

thank you so much @tuanphan, it works!! But when linking to any of the 3 words, do not go to the page it goes to a google search page. How can we fixed? Thank you so much again for your help!!!

Which code did you use?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 7/15/2022 at 5:59 PM, MADESIGN said:

@tuanphan i noticed that now that i have the 3 word links close to the hamburger menu, when is mobile version is not responsive, so the 3 words go on top of the logo, do you know how to do it responsive in mobile version?  Thank you so much!

 

 

 

What should it look like on mobile? Hide links on mobile or?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.