I have tried inserting this code in this and a few other ” JS ” files without success.
I did look at 3 javascript.js and done a search “$” never found any.
/wp-content/themes/news-magazine/scripts/javascript.js
I think the above one is the JS you were referring to?
Here the first 22 lines: Maybe in the wrong place?????
————————————————————–
jQuery(“document”).ready(function(){
jQuery(’embed,object,iframe’).wrap(“<div class=’video-container’></div>”);
jQuery(document).ready(function($) {
// Inside of this function, $() will work as an alias for jQuery()
// and other libraries also using $ will not be accessible under this shortcut
});
jQuery(‘li:has(> ul)’).addClass(‘haschild’);
jQuery(“#top-nav > div > ul li”).hover(function(){
if(jQuery(this).parents(“.container”).hasClass(“phone”) ){return false;}
jQuery(this).parent(“ul”).find(“ul”).slideUp(5);
jQuery(this).parent(“ul”).children().removeClass(“active”);
jQuery(this).addClass(“active”);
if(jQuery(this).find(“ul”).length){jQuery(this).children(“ul”).slideDown(“slow”).addClass(“opensub”);}
},function(){
if(jQuery(this).parents(“.container”).hasClass(“phone”)){return false;}
jQuery(this).parent(“ul”).children().removeClass(“active”);
jQuery(this).parent(“ul”).find(“ul”).slideUp(50);
jQuery(“.opensub”).removeClass(“opensub”);
});