Loading 2 Different Version of JS files [closed]

My only question is will this (loading 2 JS files of different versions) create any problem in any other pages? Likely. WP loads jQuery in noConflict mode, meaning it doesn’t occupy typical $ variable, but only jQuery one. However another copy of jQuery can very well get in a fight over jQuery one with the … Read more

How to implement custom URL handler to access JS modal content? [closed]

You could try with javascript, the following logic: On page load check if a hash exist in the url with something like: var hash = decodeURIComponent(location.hash.substr(1)); Then you would have two tables (one for team and one for advisors) with names matching the urls of your modals (e.g.: https://greentec-capital.com/team/peter-grouev/) like: var teamHashes = [‘peter-grouev’, ‘erick-yong’]; … Read more

Custom JS doesn’t work after 4.9.9 update [closed]

you do have your menu JS code currently 2 times on the page. in https://www.manufakturamocy.pl/mm/wp-content/cache/minify/b6a70.default.include-body.8cc603.js and in https://www.manufakturamocy.pl/mm/wp-content/themes/mmocy/js/script.js?ver=4.9.9 which causes your menu open and close in the same time. maybe a problem with your cache and JS minify plugin.

Load css classes after using ajax calls

Styles won’t be affected if you use different selectors. Create a custom stylesheet, and enqueue it immediatelly. When the page is ready just apply the styles to the mentioned responsive div, or create some logic behind it. So for example if you have <div class=”custom-sidebar”>Some content</div> Enqueue custom style within functions.php wp_enqueue_style( ‘some-custom-styles’, get_stylesheet_uri() . … Read more

How to keep close a sub-menu under homepage? [closed]

To do that, you have to set hidden attribute to the sub menu. CSS #wrapper .fusion-vertical-menu-widget.left .menu .sub-menu { display: none; } to toggle display on the menu on hover over servizi, you can add jQuery hover to the menu item. jQuery var subMenu = jQuery(“#wrapper .fusion-vertical-menu-widget.left .menu .sub-menu”); jQuery(“#menu-item-12049”).hover(function(){ subMenu.show(); }, function(){ subMenu.hide(); }); … Read more

JQuery Error in theme for .live is not a function [closed]

If you asking what is the replacement for .live() it’s .on()`, for enabling event handling for dynamically added elements and that’s how you would use it. $(document).on(“click”,”#test-element”,function() {}); so for your code. $(‘body’).on(‘click’, ‘.top_add_card’, function(event){ var parent = $(this).parent(); var $this_btn = $(this); var $target_block = $this_btn.siblings(‘div’); event.preventDefault(); event.stopPropagation(); if(parent.hasClass(‘active’) && $target_block.hasClass(‘hm_active_prep’)){ $target_block.fadeOut(function(){ parent.removeClass(‘active’); } … Read more