Jump to content

[Share] How to add a clickable logo to top of Burger Menu Items

Recommended Posts

If you want to add a clickable logo to this position.

image.thumb.png.9e21ed6a025ade701333be6ea39c31ea.png

You can use this code to Website Tools > Code Injection > Footer.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('<a href="/" class="burger-custom-logo"><img src="https://images.squarespace-cdn.com/content/v1/66f194834df8e12d7408c055/3eaefa41-e818-4b96-8136-8b0c2a82faa1/Cherry-Hill-Vertical-Logo-White-Rgb-2000px-w-72ppi.png?format=1000w" width="150px"/></a>').insertBefore('.header-menu-nav-wrapper');
});
</script>

image.png.e11dc9beb248265f53c04c2aa9501f1d.png

Result

image.png.f67bc1b6e1c5f066039bc1367e1e358d.png

To resize logo, you can change this value.

image.png.237990dddc653df48baf0aecdfa5e7da.png

To add custom text under logo, use this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('<a href="/" class="burger-custom-logo"><img src="https://images.squarespace-cdn.com/content/v1/66f194834df8e12d7408c055/3eaefa41-e818-4b96-8136-8b0c2a82faa1/Cherry-Hill-Vertical-Logo-White-Rgb-2000px-w-72ppi.png?format=1000w" width="150px"/><p>Enter your text here here Google Alphabet Facebook Amazon Ebay Instagram</p></a>').insertBefore('.header-menu-nav-wrapper');
});
</script>
<style>
a.burger-custom-logo {
    margin-left: 5vw;
    margin-right: 5vw;
    padding-left: 4vw;
    padding-right: 4vw;
    text-align: left;
}
</style>

image.png.a5f88a4a0b051cd2e5df66c9b15e7c94.png

Result

image.png.5d8e61e45c1d54eb6105ca8a8df6c6a0.png

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
  • Replies 0
  • Views 390
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.