Jump to content

[Share code] Add a second Logo to Right of Header

Recommended Posts

To add a second Logo to Right of Header, you can use these code to Code Injection > Footer

image.png.a7dab8cdce6f7a41a81ffcbf377c89b1.png

#1. With Non-Clickable Logo

Use this code

<!-- Non-clickable Logo -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('<p class="custom-img"><img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" width="100px"/></p>').appendTo('.header-display-desktop');
});
</script>

Replace example logo url with your image url

image.png.ae7796895b4c1b525ad37ff218e98ab2.png

#2. Clickable Logo

Use this code. Replace Google Url/Google Logo url with your image/url

<!-- Clickable Logo -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('<a class="custom-img" href="https://google.com" target="_blank"><img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" width="100px"/></a>').appendTo('.header-display-desktop');
});
</script>

image.png.daf99859c0976eb8b80af18a8afc0d56.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 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.