Global Header - navigation menu not aligned

Hi there

Agency Partner, Creation Agency is attempting to update website logo through their HS CMS.

They cloned the original style sheet, renamed it and added to the template.

1. Global Header - they updated the logo.

2. But the navigation menu alignment has now changed and when reviewing the module etc no changes had been made.

Question: Why when updating the logo in the global header is the menu navigation now out of alignment. See screen shot of global header below. How to fix?

3. Link to staging site Edit Page | HubSpot

4. Link to current website (navigation menu should look like this https://www.creationagency.com/

thanks

Catherine

34129i93FD34B4D9E8CAD5.png

Hi @Fitzycath,

unfortunatly the staging link works only for people who are “registered” in the Hub. Please provide a working preview link for detailed help.

What could be missing are the header classes like “custom-header-right-group” in the column where the menu and social icons are located and “custom-menu-primary” on the menu module. please check if they have inserted them.

best,

Anton

Hi @Anton

Thanks for quick response. here is the preview of the home page from staging site Edit Page | HubSpot. Does this help. Where do I look for those elements. Sorry website design is not my area so unsure where to look for these elements to confirm.

thanks

Catherine

Hi @Fitzycath,

unfortunatley this link doesn’t work either.

Is the page published in the staging environment? (it won’t be pushed to the live environment)?
It should look something like this:

you can publish all changes without doubt here.
After publishing in the staging (not staging proof) you will get a link something like
creationagency.hs-sandbox.com/page-name this is a link that can be shared.

For the classes:
You’ll see the used template in the column “Template” - click on it. If it’s the “old” template builder you should see something like this


screenshot is from the default vast global header

if the header is a global group right click on it and select “edit global group”. If there are classes below every module - good. If not you’ll need to compare the old header classes with the new ones and if they’re missing in the new one enter them by selecting a module(or group) and paste the class(without “.” into the right sidebar)

Hope this helps,

best,

Anton

Thanks a lot @dennisedson!

first of all - It seems that there’s missing/not working a lot. This is why I’ve extracted the whole old/working menu css. Replace your current menu part with this one and it should be as good as new.

.custom-menu-primary .hs-menu-wrapper > ul{}
.custom-menu-primary .hs-menu-wrapper > ul > li{}
.custom-menu-primary .hs-menu-wrapper > ul > li > a{}
.custom-menu-primary .hs-menu-wrapper > ul > li > a:hover{}

.custom-menu-primary {
 text-align: right;
}
.custom-menu-primary .hs-menu-wrapper > ul {
 margin-right: -110px;
 padding-top: 5px;
 text-align: left;
}
.custom-menu-primary .hs-menu-wrapper > ul > li > a {
 position: relative;
 color: #000;
 font-size: 14px;
 font-weight: 300;
 -webkit-transition: all .2s ease-in-out;
 transition: all .2s ease-in-out;
 white-space: nowrap;
 display: block;
 line-height: 25px;
 letter-spacing: 1px;
 margin-bottom: 39px;
}
.custom-menu-primary .hs-menu-wrapper > ul > li {
 margin: 0 15px;
}
.custom-menu-primary .hs-menu-wrapper > ul > li > a:after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 0;
 height: 1px;
 background: #000;
 -webkit-transition: all .2s ease-in-out;
 transition: all .2s ease-in-out;
}
.custom-menu-primary .hs-menu-wrapper > ul > li:hover > a:after {
 width: 30px;
}
.custom-menu-primary .hs-menu-wrapper > ul ul {
 margin-left: -35px;

}

.hs-menu-children-wrapper-inner {
 background: #fafafa;
 background: -webkit-linear-gradient(#fff,#fafafa);
 background: -moz-linear-gradient(#fff,#fafafa);
 background: linear-gradient(#fff,#fafafa);
 position: relative;
 padding: 34px 35px 27px;
}
.custom-menu-primary .hs-menu-wrapper > ul ul li a {
 color: #000;
 font-size: 14px;
 font-weight: 300;
 -webkit-transition: all .2s ease-in-out;
 transition: all .2s ease-in-out;
 letter-spacing: 1px;
 margin-bottom: 5px;
}

.custom-menu-primary .hs-menu-wrapper > ul ul li a:hover,
.custom-menu-primary .hs-menu-wrapper > ul ul li.active a {
 color: #00a698;
}

.custom-menu-primary .hs-menu-wrapper > ul li.active-branch > a {
 color: #00a698;
}

/* Child List */

.custom-menu-primary .hs-menu-wrapper > ul ul:before, 
.custom-menu-primary .hs-menu-wrapper > ul ul:after {
 content: '';
 bottom: 12px;
 width: 125px;
 height: 30px;
 z-index: -2;
}

.custom-menu-primary .hs-menu-wrapper > ul ul:before {
 left: 20px;
 -webkit-box-shadow: 0 12px 30px rgba(0,0,0,.4);
 box-shadow: 0 12px 30px 0 rgba(0,0,0,.4);
 -webkit-transform: rotate(-8deg);
 transform: rotate(-8deg);
 position: absolute;
}

.custom-menu-primary .hs-menu-wrapper > ul ul:after {
 right: 20px;
 -webkit-box-shadow: 0 12px 30px rgba(0,0,0,.4);
 box-shadow: 0 12px 30px 0 rgba(0,0,0,.4);
 -webkit-transform: rotate(8deg);
 transform: rotate(8deg);
 position: absolute;
}

.custom-menu-primary .hs-menu-wrapper > ul ul li{}
.custom-menu-primary .hs-menu-wrapper > ul ul li a{}
.custom-menu-primary .hs-menu-wrapper > ul ul li a:hover{}

/* Override max width on menu links */
.custom-menu-primary .hs-menu-wrapper > ul li a, 
.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
 overflow: visible !important;
 max-width: none !important;
 width: auto !important;
}

/* Fix menu disappearing on desktop after toggling mobile menu */
@media screen and (min-width:768px) {
 .custom-menu-primary .hs-menu-wrapper,
 .custom-menu-primary .hs-menu-wrapper > ul ul{ 
 display:block !important;
 }
 .custom-menu-primary .hs-menu-wrapper > ul {
 margin-bottom: -39px !important;
	}
 .custom-menu-primary .hs-menu-wrapper > ul ul {
 transform:translateY(-10px);
 transition: all .1s ease !important;
 }
 .custom-menu-primary .hs-menu-wrapper > ul li:hover > ul {
 transform:translateY(0);
 }
}

/* =============== Mobile Toggle Menu =============== */

/* Hide button on Desktop */
.mobile-trigger, .child-trigger{ display: none; }

@media (max-width: 767px){

 /* Menu Reset */
 .custom-menu-primary,
 .custom-menu-primary .hs-menu-wrapper > ul,
 .custom-menu-primary .hs-menu-wrapper > ul li,
 .custom-menu-primary .hs-menu-wrapper > ul li a{
 display: block;
 float: none;
 position: static;
 top: auto;
 right: auto;
 left: auto;
 bottom: auto;
 padding: 0px;
 margin: 0px;
 background-image: none;
 background-color: transparent;
 border: 0px;
 -webkit-border-radius: 0px;
 -moz-border-radius: 0px;
 border-radius: 0px;
 -webkit-box-shadow: none;
 -moz-box-shadow: none;
 box-shadow: none; 
 max-width: none;
 width: 100%;
 height: auto;
 line-height: 1; 
 font-weight: normal;
 text-decoration: none;
 text-indent: 0px;
 text-align: left;
 color:#fff;
 }

 /* ===== Mobile Toggle Button ===== */

 .mobile-trigger{
 display: inline-block !important; /* Show button on mobile */
 cursor: pointer; /* Mouse pointer type on hover */
 position: absolute; /**************************************/
 top: 5px; /* Position Button at right of screen */
 right: 0px; /**************************************/
 width: 40px;
 height: 25px;
 font-size: 16px;
 font-weight: normal;
 text-align: left;
 text-transform: uppercase;
 color: #000;
 -webkit-transform: rotate(0);
 -moz-transform: rotate(0);
 -o-transform: rotate(0);
 transform: rotate(0);
 -webkit-transition: .5s ease-in-out;
 -moz-transition: .5s ease-in-out;
 -o-transition: .5s ease-in-out;
 transition: .5s ease-in-out;
 }
 .mobile-trigger:hover{
 text-decoration: none; /* Removes link text underline on button */

 }

 /* Change button when menu is open */
 .mobile-open .mobile-trigger{

 }
	.hs-menu-children-wrapper-inner {
 padding: 0;
 }
 /* Toggle Button Icon */

 .mobile-trigger span{
 display: block;
 position: absolute;
 height: 2px;
 width: 100%;
 background: #000;
 opacity: 1;
 left: 0;
 -webkit-transform: rotate(0);
 -moz-transform: rotate(0);
 -o-transform: rotate(0);
 transform: rotate(0);
 -webkit-transition: .25s ease-in-out;
 -moz-transition: .25s ease-in-out;
 -o-transition: .25s ease-in-out;
 transition: .25s ease-in-out;
 }
	.mobile-trigger span:nth-child(1){
 top: 0;
 }
 .mobile-trigger span:nth-child(2), .mobile-trigger span:nth-child(3) {
 top: 12px;
	}
 .mobile-trigger span:nth-child(4) {
 top: 24px;
	}
 .mobile-open .mobile-trigger span:nth-child(1) {
 top: 12px;
 width: 0%;
 left: 50%;
 }
 .mobile-open .mobile-trigger span:nth-child(2) {
 -webkit-transform: rotate(45deg);
 -moz-transform: rotate(45deg);
 -o-transform: rotate(45deg);
 transform: rotate(45deg);
 }
 .custom-menu-primary .hs-menu-wrapper > ul ul:before, 
.custom-menu-primary .hs-menu-wrapper > ul ul:after{
 content:none;
 }
 .mobile-open .mobile-trigger span:nth-child(3) {
 -webkit-transform: rotate(-45deg);
 -moz-transform: rotate(-45deg);
 -o-transform: rotate(-45deg);
 transform: rotate(-45deg);
 }
 .mobile-open .mobile-trigger span:nth-child(4) {
 top: 11px;
 width: 0%;
 left: 50%;
 }
 /* ===== Mobile Child Toggle Buttons ===== */

 .child-trigger{
 display: block !important; /* Hide button on Desktop */
 cursor: pointer; /* Mouse pointer type on hover */
 position: absolute;
 top: 0px;
 right: 0px;
 width: 100% !important; /* Button width */
 min-width: 100% !important;
 height: 45px !important; /* Button height */ 
 padding: 0 !important;
 color:#000;
 padding-top: 14px !important;
 text-align: center;
 }
 .child-trigger:hover{
 text-decoration: none;
 }
 .child-trigger i{
 position: relative;
 top: 50%; /* Centers icon inside button */
 margin: 0 auto !important;
 -webkit-transform: rotate(0deg);
 -ms-transform: rotate(0deg);
 transform: rotate(0deg);
 }
 .child-trigger i:after{
 position: absolute;
 content: '';
 }
 .child-trigger i, .child-trigger i:after{
 width: 10px; /* Icon line width */
 height: 1px; /* Icon line height */
 background-color: #fff; /* Icon color */
 display: block;
 }
 .child-trigger i:after{
 -webkit-transform: rotate(-90deg);
 -ms-transform: rotate(-90deg);
 transform: rotate(-90deg);
 } 
 .child-trigger.child-open i{}
 .child-trigger.child-open i:after{
 -webkit-transform: rotate(-180deg);
 -ms-transform: rotate(-180deg);
 transform: rotate(-180deg);
 }

 /* ===== Mobile Menu Styles ===== */ 

 .custom-menu-primary.js-enabled{
 position: relative;
 padding-top: 0; /* Makes room for button */
 margin: 0;
 }

 /* Hide menu on mobile */

 .custom-menu-primary.js-enabled .hs-menu-children-wrapper{
 display: none;
 } 

 /* Make child lists appear below parent items */
 .custom-menu-primary ul.hs-menu-children-wrapper{
 visibility: visible !important;
 opacity: 1 !important;
 position: static !important;
 display: none;
 }

 /* Mobile Menu Styles */ 
 .custom-menu-primary.js-enabled .hs-menu-wrapper{
 width: 100%;
 position: relative;
 top: 0;
 left: 0;
 padding: 35px 0 20px;
 }
 .custom-menu-primary .hs-menu-wrapper{

 width: 100%; /* Full screen width */
 }

 /* Level 1 Menu List Styles */
 .custom-menu-primary .hs-menu-wrapper > ul > li{
 position: relative;
 padding: 10px 0;
 }
 .custom-menu-primary .hs-menu-wrapper > ul > li a{
 color: #000;
 font-size: 14px;
 font-weight: 300;
 -webkit-transition: all .2s ease-in-out;
 transition: all .2s ease-in-out;
 overflow: visible;
 text-align: center;
 position: relative;
 display:inline-block;
 }
 .custom-menu-primary .hs-menu-wrapper > ul > li{
 	text-align:center; 
 }

 /* Level 1 and Higher Menu List Styles */
 .custom-menu-primary .hs-menu-wrapper > ul li{

 }
 .custom-menu-primary .hs-menu-wrapper > ul li a{
 letter-spacing: 1px;
 line-height: 25px;
 }
 .custom-menu-primary .hs-menu-wrapper > ul li a:hover{
 color: #fff;
 }

 /* Level 2 and Higher Menu List Styles */
 .custom-menu-primary .hs-menu-wrapper > ul ul {
 padding: 0 0 20px;
 background: #fafafa;
 }
 .custom-menu-primary .hs-menu-wrapper > ul ul li{
 margin: 10px 0;
 }
 .custom-menu-primary .hs-menu-wrapper > ul ul li a{

 }

 /* Level 3 and Higher Menu List Styles */
 .custom-menu-primary .hs-menu-wrapper > ul ul ul li a{
 color: #000;
 letter-spacing: 1px;
 font-size: 14px;
 font-weight: 300;
 -webkit-transition: all .2s ease-in-out;
 transition: all .2s ease-in-out;
 display: block;
 line-height: 25px;
 }

 /* Level 4 and Higher Menu List Styles */
 .custom-menu-primary .hs-menu-wrapper > ul ul ul ul li a{

 }
 .custom-header-group .page-center {
 padding: 15px 15px;
 }

best,

Anton

Hey @Anton , @Fitzycath - here is a preview link :grinning_face: