Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
jbozo99

2 Logos side by side on header

Question

Site URL: https://snail-cobalt-pa44.squarespace.com/

Trying to have 2 logo images centered, one leads to home page one leads to "Office Shacks" page (as seen on the site).

Looking for code that would add a second image to the right of the initial logo that navigates to a page.  I prefer the method where one adds a second logo rather than where one adds a background image to navigation page and gets rid of text.  Not quite sure if either or any of this is possible, thus I am turning to the homies on Squarespace forum.  Lmk what you all think if this is possible/any solutions, I would really appreciate it. 

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 1

Hi jbozo99

This can be achieved via custom css/js. Add this into advanced->custom code

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
	jQuery(document).ready(function($) {
    	var pageUrl = "/office-shacks";
        var logoUrl = "https://previews.123rf.com/images/sabinarahimova/sabinarahimova1808/sabinarahimova180816535/107766980-office-block-vector-icon-isolated-on-transparent-background-office-block-logo-concept.jpg"
        $(".header-title-logo").append('<a href="'+pageUrl+'" data-animation-role="header-element"><img src="'+logoUrl+'"></a>');
    });
</script>

image.thumb.png.d1e66ac6fbadb63c140955a61fd897e6.png

Good luck!


I am frontend dev that provide solutions to enhance feature of squarespace.com can't provide, please check my profile for more details

--- To Space And Beyond! ---

https://www.freelancer.com/u/BaNgan

Share this post


Link to post
  • 0
10 minutes ago, bangank36 said:

Hi jbozo99

This can be achieved via custom css/js. Add this into advanced->custom code


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
	jQuery(document).ready(function($) {
    	var pageUrl = "/office-shacks";
        var logoUrl = "https://previews.123rf.com/images/sabinarahimova/sabinarahimova1808/sabinarahimova180816535/107766980-office-block-vector-icon-isolated-on-transparent-background-office-block-logo-concept.jpg"
        $(".header-title-logo").append('<a href="'+pageUrl+'" data-animation-role="header-element"><img src="'+logoUrl+'"></a>');
    });
</script>

image.thumb.png.d1e66ac6fbadb63c140955a61fd897e6.png

Good luck!

Thank you so much Bangank, worked like a charm. 🙂

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...