JavaScriptJqueryWordpressWordpress Plugins

Visual composer not working due to Different Menus in Different Pages Pro plugin

We had an issue on one site wherein suddenly Visual Composer stopped working due to Different Menus in Different Pages Pro plugin.

Now the issue was able to be pinpointed to Different Menus in Different Pages Pro plugin because the plugins modified from last time issue was not there were only 3 and we tried to disable one by one to see which is culprit and we got to Different Menus in Different Pages Pro plugin.

For reference plugins which modified were as below

After cornering to Different Menus in Different Pages Pro plugin we had option of either using other plugin for feature or fix the Different Menus in Different Pages Pro plugin as there was much help online and there main site

Issue we were seeing was clearly visible in console that the jquery was messing up.

Taking first error we saw that there are 2 load-scripts.php in viewsource

First

 

Second

 

Still nothing becoming clear to took view source (of any page or post edit) at 2 instances once when Different Menus in Different Pages Pro plugin was active and Different Menus in Different Pages Pro plugin was inactive and compared both to see what exactly is changing.

Major issue got was there was addition of below when we have Different Menus in Different Pages Pro plugin active

Seeing it we can clearly see there is jquery added which is also there at top of page and this was assumed to be creating problem which is obvious as we cannot have 2 jquery libraries on same page.

<script src=”https://code.jquery.com/jquery-1.12.4.min.js”></script>
<script src=”https://checkout.freemius.com/checkout.min.js”></script>

Commented library as below and it worked and VC was back working fine.

About author

Love coding, crazy about logic, like solution architecting and solving problems. Thirsty for knowledge, challenges & most importantly innovation. One of the passionate brain behind SpryOX

Leave a Reply

Your email address will not be published. Required fields are marked *