CMS Development

IAM
Colaborador | Partner
Colaborador | Partner

Centered Logo in Navigation

resolver

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 Me gusta
2 Soluciones aceptadas
Designer_WOT
Solución
Colaborador

Centered Logo in Navigation

resolver
Designer_WOT
Solución
Colaborador

Centered Logo in Navigation

resolver

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 !


Ver la solución en mensaje original publicado

6 Respuestas 6
Designer_WOT
Solución
Colaborador

Centered Logo in Navigation

resolver

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
Participante

Centered Logo in Navigation

resolver

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
Colaborador | Partner
Colaborador | Partner

Centered Logo in Navigation

resolver

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 Me gusta
jennysowyrda
Administrador de la comunidad
Administrador de la comunidad

Centered Logo in Navigation

resolver

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
Solución
Colaborador

Centered Logo in Navigation

resolver

Sure @jennysowyrda, Thankyou for directing me !

IAM
Colaborador | Partner
Colaborador | Partner

Centered Logo in Navigation

resolver

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

 

Thanks!

Jenna

0 Me gusta