Call Us : +1-678-551-2452
+91 77381-86899

WPBakery Visual Composer plugin version 4.6.1 not working after wordpress upgrade to 4.5.3

When I upgraded wordpress to version 4.5.3 Visual composer plugin  stopped loading loading as plugin version is not compatible with wordpress 4.5.3 , After debugging it showed below java script error

Uncaught TypeError: $template.get is not a function  in file composer-view.js

So the soltuin to this is edit the below file at path

root\wp-content\plugins\js_composer\assets\js\backend\composer-view.js

replace existing html2element function with below code

html2element: function(html) {
var $template, attributes = {},
template = html;
$template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) {
attributes[attr.name] = attr.value
}), this.$el.attr(attributes).html($template.html()), this.setContent(), this.renderContent()
},

and it worked.

 

Leave a Reply

Pay with PayPal

Icon Web Solutions Service
Other Amount:
Name:

Testimonials

It has been a great pleasure working with Icon Web Solutions on the development of my digitized logo and website. From the initial phases of web design, the Icon Web Solutions team has been a pleasure to work with
Naren, USA

REQUEST A QUOTE

Request A Quote

Please fill the form to request a quote from us

Name (required)

Email (required)

Phone

Services
 Website Design & Development Logo Design SEO SMO Payment Gateway Integration Others

Any Other Detail

Input Text Shown in Image
captcha