Sticky Header Menu Broke After Update - Question | JoomShaper

Sticky Header Menu Broke After Update

A

Allen

Helix Framework 2 years ago

Similar to Bob's post at https://www.joomshaper.com/forum/question/4077 , my custom header code I got from a post last year and at the Helix Ultimate documentation page no longer works after the latest HU 1.1.3 update.

My original code that was working for a year per the recommendations at my previous enquiry (https://archive.joomshaper.com/forums/shrink-header-menu-on-scroll-on-helix-ultimate) doesn't work any more.

I tried the recommendations at https://www.joomshaper.com/documentation/helix-framework/helixultimate/faq-how-to-do. No good.

My current custom.css file contains:

/* ========================================================================
   Set Scrolling Header in Helix Ultimate
 ========================================================================== */
#sp-header.header-sticky {height: 65px;}
#sp-header.header-sticky .sp-megamenu-parent > li > a, 
#sp-header.header-sticky .sp-megamenu-parent > li > span 
{line-height: 65px;}


/* ========================================================================
   Fix scrolling site logo in Helix Ultimate
 ========================================================================== */
#sp-header.header-sticky .logo {height: 65px;}
#sp-header.header-sticky .logo-image {
    height: 55px;
}

I simply want the header bar and logo to shrink on scroll in desktop and mobile. The menu is moving up on scroll, and the logo moves up on scroll, and scales properly. However, but the header height remains unchanged, and dropdown menus now overlap the header itself.

  1. What code do I need to change to make the header height reduce properly on scroll?
  2. What code do I need to add to make this work properly on mobile devices?

Thanks!

0
4 Answers
A
Allen
Accepted Answer
2 years ago #18254

Hi,

Your code modification worked. The original code I followed Joomshaper's own documentation at https://www.joomshaper.com/documentation/helix-framework/helixultimate/faq-how-to-do was

#sp-header.header-sticky {height: 65px;}

You just modified this to

header#sp-header.header-sticky {
    height: 65px !important;
}

Is my understanding correct? If so, perhaps you should update the Helix Ultimate documentation page above with this changed code so others will not have this problem too.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #18214

Hi there,

Thanks for contacting us. Sorry for the inconvenience. I can ensure that, this is not our product issue. You can check our default helix quickstart pack.

I have added small css code. Plase check & let me know.

-Thanks

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #18216

Hello Allen

I have used this CSS in your custom.css file. Hopefully, it is okay now.

header#sp-header.header-sticky {
    height: 65px !important;
}

Best regards

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #18261

I hope Helix Ultimate v2 will improve this feature. You can close this forum post. Thanks

0