-
AuthorPosts
-
August 19, 2024 at 6:25 am #1464873
I saw a couple of old threads on this, but I doubt if they are still relevant. Basically, the “Header Invisible Until User Scrolls” is not working on one of my sites. See private please. I’ve compared the Enfold Theme Options Header settings to another site that is working, but no change.
August 19, 2024 at 7:08 am #1464878Hey laptophobo,
Thank you for the inquiry.
We’ve found a script error that might be related to the issue. What happens when you remove this script?
<script> (function($) { var int = ''; function a() { var isMobile = $('.av-burger-menu-main').css('display') , htmlString = $('#header_main .social_bookmarks').find('li a') , mobileMenu = $('.av-burger-overlay') , socialString = []; if (isMobile == 'none') return; if ($('.burger-social').length) clearInterval(int); htmlString.each(function() { var socialClass = $(this).parent('li').attr('class') , socialItems = $(this).wrap('<li class="' + socialClass + ' av-active-burger-items burger-social"></div>').parent().unwrap(); socialString.push(socialItems); }); $(socialString).each(function() { $(this).appendTo('#av-burger-menu-ul'); }); } $('#header').on('mousedown', '.av-main-nav-wrap', function() { int = setInterval(function() { a(); }, 500); }); } )(jQuery); </script>
Best regards,
IsmaelAugust 19, 2024 at 1:58 pm #1464905Nope, removing that script didn’t change anything. I returned it back. (Should I delete it out anyway)?
Also, I deactivated the Child function.php file to see it that did anything. Nothing.August 20, 2024 at 5:29 am #1464947Hi,
Thank you for the update.
We may need to access the site to further investigate the issue. Please provide the login details in the private field. Did you modify any template files in the child theme?
Best regards,
IsmaelAugust 20, 2024 at 12:53 pm #1464967Admin access login details are in Private.
I have not modified the Parent template files. The only ones modified in Child template are: functions.php, header.php, footer.php. Do you need access to the web files as well?
Thanks much!
August 21, 2024 at 6:02 am #1465032Hi,
I have not modified the Parent template files. The only ones modified in Child template are: functions.php, header.php, footer.php.
There is a header.php and a footer.php file in the child theme folder. Did you try updating these files to the latest version? You could also try removing them temporarily to see if that resolves the issue.
Best regards,
IsmaelAugust 21, 2024 at 9:33 am #1465046Yes, it was the first thing I thought of. I turned off those 2 files (by temporarily renaming them) and that didn’t fix it.
August 23, 2024 at 4:51 am #1465201Hi,
The header.php and footer.php files are still there when we checked. Can we access the server files via S/FTP? Please provide the login details in the private field.
Best regards,
IsmaelAugust 23, 2024 at 10:48 am #1465226Yes, they are still there. I had mentioned that I had turned them off temporarily to check them. But here’s the FTP location (in Private)
August 23, 2024 at 5:07 pm #1465250Hi,
I tried enabling the parent theme, and the header worked correctly on scroll then on your test page, I then re-enabled your child theme.
I see that you also have custom shortcode elements in your child theme, try removing these and check, if this helps, add them back one at a time to find the conflict.Best regards,
MikeAugust 25, 2024 at 10:32 am #1465330Hi Mike,
Since the pages without shortcodes are not working as well, does this mean that whenever I use shortcodes it may break Enfold child?August 25, 2024 at 10:44 am #1465331BTW, I took all of the pages known to be using (Enfold) short codes and placed them in Draft mode. That didn’t fix the problem.
There are a couple of pages that use shortcodes (e.g.: mailing list forms). Would this need to be checked?August 25, 2024 at 1:03 pm #1465341Hi,
I not sure what you mean, I was saying that when the parent theme is used the header worked correctly on scroll, so this would point to the error in your child theme, and I see that you have custom files in your child theme:
So did you try switching the parent theme?
Did you try removing these files from your child theme?
Typically the custom header.php & footer.php causes these issues, but you said that you already tried removing these.Best regards,
MikeAugust 26, 2024 at 8:37 am #1465402Hi Mike,
Thanks for that.
I’m unable to find “Select the Theme to Edit” selector you’ve attached. Once I see what you saw, I might be able to figure out the issue on my end.
Thanks!August 26, 2024 at 4:50 pm #1465425August 27, 2024 at 4:46 am #1465454Thanks for the roadmap. :-)
Well, I turned off the entire Enfold Child (enfold-child) folder by renaming it. No change. I also went in and did the same to the shortcode files and event the Child style.css file.
My client no longer wants the hidden until scrolled down header look, so I think we can leave this mystery unsolved for now. I appreciate your time on this though.
Best,
RichardAugust 27, 2024 at 6:41 am #1465467 -
AuthorPosts
- The topic ‘“Header Invisible Until User Scrolls” not working’ is closed to new replies.