I'm customizing a WP theme but I cannot remove one JS which I don't need. I have deleted it from the folder but it still renders in html.
There are 5 JQuery files in theme's js folder + one called base.js which seems to handle some objects but it has nothing to do with the JS I don't want to include.
So rendered html looks like this:
<script type='text/javascript' src='../wordpress/wp-content/themes/custom-theme/js/jquery.prettyPhoto.js?ver=3.7'></script>
<script type='text/javascript' src='../wordpress/wp-content/themes/custom-theme/js/jquery.fitvids.js?ver=3.7'></script>
<script type='text/javascript' src='../wordpress/wp-content/themes/custom-theme/js/jquery.innerfade.js?ver=3.7'></script>
<script type='text/javascript' src='../wordpress/wp-content/themes/custom-theme/js/jquery.backstretch.min.js?ver=3.7'></script>
<script type='text/javascript' src='../wordpress/wp-content/themes/custom-theme/js/base.js?ver=3.7'></script>
<script type='text/javascript' src='../wordpress/wp-content/themes/custom-theme/js/jquery.flexslider-min.js?ver=3.7'></script>
and I don't need the last one - FlexSlider for I'll be using a different one
There's an inline JS that also renders in html, and I want to remove it as well - I've opened each and every file in the theme folder and I couldn't find this piece of code anywhere
<!-- Flex Slider -->
<script type = "text/javascript">
jQuery(window).load(function () {
// Slider
jQuery('#slider').flexslider({
animation: "fade",
slideDirection: "horizontal",
slideshow: true,
slideshowSpeed: 7000,
animationDuration: 600,
directionNav: true,
keyboardNav: true,
randomize: false,
pauseOnAction: true,
pauseOnHover: false,
controlsContainer: ".slideshow",
animationLoop: true
});
});
</script>
Any ideas on how I can prevent this JS from rendering and add a different one.
Thank you!