Forum Replies Created
-
AuthorPosts
-
I think I have some solutions to getting this minification and concatenation working after reading these 3 posts:
https://kriesi.at/support/topic/problem-with-new-avia-merged-styles-loading-after-style-css/
I am just wondering about the load order now: I was able to get my css to be loaded after the enfold parent theme’s css is loaded. However, the same priority integer in add_action( ‘wp_enqueue_scripts’, ‘themename_enqueue_scripts’, 99999999999 ) didn’t work for my javascript. Is the Autoptimize or BWP minify plugin currently still the recommendation for addressing this? (I saw that was a recommendation in the post here: https://kriesi.at/support/topic/enfold-css-javascript-merging-and-compression-not-working/)
Thank you
- This reply was modified 5 years, 9 months ago by fcbcurethemes.
This reply has been marked as private.This reply has been marked as private.Do you have a better fix to this issue that doesn’t cause a side effect on an iPhone and other mobile devices where the submenu disappears when it shouldn’t?
This was my workaround (which incorporates BugfreeSystems’ solution above):
const iPadMenuFix = function() { $(this).closest('ul.sub-menu').delay(1000).animate({opacity: 0,},300, function() { $(this).css('visibility', 'hidden'); }) }; $('#avia-menu').find(".menu-item-has-children.current-menu-item a").on('touchend', iPadMenuFix); console.log($('#avia-menu').find(".menu-item-has-children.current-menu-item a")); $('.av-burger-menu-main a').on('avia_burger_list_created', function() { //had to add a delay because the 'avia_burger_list_created' event fires before the #av-burger-menu-ul element is created setTimeout(function(){ $('#av-burger-menu-ul').find("a").off('touchend', iPadMenuFix); console.log('#av-burger-menu-ul'); console.log($('#av-burger-menu-ul').find("a")); }, 200) });
- This reply was modified 5 years, 11 months ago by fcbcurethemes.
Actually, I was able to get concatenate and minify working on a localhost using MAMP running PHP 7.1.something. Hopefully it’s the PHP version that’s relevant there and not any other settings; what do you think?
However, when I disable CSS and JS concatenation and minification in order to see if “load only used elements” setting is working, I still see unused CSS and JS loaded on the page.
For example:
iconlist.js and iconlist.css.Do you have a typical checklist for this kind of issue so I can troubleshoot it on my end on my local install?
Thank you
- This reply was modified 5 years, 11 months ago by fcbcurethemes.
This reply has been marked as private. -
AuthorPosts