CMS Development

IAM
Contributeur | Partenaire solutions
Contributeur | Partenaire solutions

Centered Logo in Navigation

Résolue

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 Votes
2 Solutions acceptées
Designer_WOT
Solution
Contributeur

Centered Logo in Navigation

Résolue

Sure @jennysowyrda, Thankyou for directing me !

Voir la solution dans l'envoi d'origine

Designer_WOT
Solution
Contributeur

Centered Logo in Navigation

Résolue

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 !


Voir la solution dans l'envoi d'origine

6 Réponses
Designer_WOT
Solution
Contributeur

Centered Logo in Navigation

Résolue

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

Résolue

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
Contributeur | Partenaire solutions
Contributeur | Partenaire solutions

Centered Logo in Navigation

Résolue

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 Votes
jennysowyrda
Gestionnaire de communauté
Gestionnaire de communauté

Centered Logo in Navigation

Résolue

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
Contributeur

Centered Logo in Navigation

Résolue

Sure @jennysowyrda, Thankyou for directing me !

IAM
Contributeur | Partenaire solutions
Contributeur | Partenaire solutions

Centered Logo in Navigation

Résolue

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

 

Thanks!

Jenna

0 Votes