CMS Development

IAM
Contributor | Partner
Contributor | Partner

Centered Logo in Navigation

SOLVE

I'm trying to split the navigation bar in between the logo so 3 pages are on the left and 3 on the right with the logo centered and breaking the plane coming down. Here is an example of a site I found online where the logo comes down off the header. http://tweedbarbers.com/

 

I can't seem to find any examples of this achieved in Hubspot templates in marketplace. Anyone know the best way to acheive this? 

 

Thank you!

0 Upvotes
2 Accepted solutions
Designer_WOT
Solution
Contributor

Centered Logo in Navigation

SOLVE

Sure @jennysowyrda, Thankyou for directing me !

View solution in original post

Designer_WOT
Solution
Contributor

Centered Logo in Navigation

SOLVE

Hello @IAM,
           There are two ways to get this First one is to do it from backend and second one is to do it using code. both have its advantages and disadvantages

Method 1. Add the image from advanced menu using custom code like in below screenshot
add-logo-in-navigation.png
Code to add in navigation:
<img src="https://cdn2.hubspot.net/hub/4954262/hubfs/ATS%20Shield%20Logo-01.png" alt="Company Name Goes Here" width="200">


Method 2: Just add below code in Additional <head> markup [ will be at right sidebar ] in template.
<script>
$(document).ready(function(){
$('.logo span.hs_cos_wrapper').wrap('<li class="hs-menu-depth-1 hs-menu-item logoInside"></li>').parent().insertAfter('.custom-menu-primary .hs-menu-depth-1:eq(2)')
});
</script>

Kindly mark this as accepted solution if it helps.
Thanks !


View solution in original post

6 Replies 6
Designer_WOT
Solution
Contributor

Centered Logo in Navigation

SOLVE

Hello @IAM,
           There are two ways to get this First one is to do it from backend and second one is to do it using code. both have its advantages and disadvantages

Method 1. Add the image from advanced menu using custom code like in below screenshot
add-logo-in-navigation.png
Code to add in navigation:
<img src="https://cdn2.hubspot.net/hub/4954262/hubfs/ATS%20Shield%20Logo-01.png" alt="Company Name Goes Here" width="200">


Method 2: Just add below code in Additional <head> markup [ will be at right sidebar ] in template.
<script>
$(document).ready(function(){
$('.logo span.hs_cos_wrapper').wrap('<li class="hs-menu-depth-1 hs-menu-item logoInside"></li>').parent().insertAfter('.custom-menu-primary .hs-menu-depth-1:eq(2)')
});
</script>

Kindly mark this as accepted solution if it helps.
Thanks !


Jvizcuna
Participant

Centered Logo in Navigation

SOLVE

I'm trying to apply this solution to my website but sadly isn't working, can you please provide more details about how to add a custom code to te navigation bar?

Thank you

IAM
Contributor | Partner
Contributor | Partner

Centered Logo in Navigation

SOLVE

Thank you! That worked. Do you know why there is a white box around the logo image and how I can remove it? http://didsolutions-4954262.hs-sites.com/

0 Upvotes
jennysowyrda
Community Manager
Community Manager

Centered Logo in Navigation

SOLVE

Hey @IAM,

 

Can you share a link to your page so we can see what you are working with at the moment? 

 

@Designer_WOT@Kevin-C do you have any tips for @IAM?

 

Thanks,
Jenny

Designer_WOT
Solution
Contributor

Centered Logo in Navigation

SOLVE

Sure @jennysowyrda, Thankyou for directing me !

IAM
Contributor | Partner
Contributor | Partner

Centered Logo in Navigation

SOLVE

Sure! Here is the link: http://didsolutions-4954262.hs-sites.com/

 

Thanks!

Jenna

0 Upvotes