One of the my client come to me and say that visual composer element not load in page editor after the update to WordPress 4.8.
When i checked it will show like below image.
The error I get “$template.get is not a function” in browser console.
After the some time of googling i got the this link and got the solutions.
If you have same error then please follow listed below steps. My case have Salient them installed in client’s website.
Step: 1 Open this location themes/salient//wpbakery/js_composer/assets/js/backend/
Step: 2 Then open composer-view.js file
Step: 3 Replace below code at line number 62 and save file
1 2 3 4 5 6 7 |
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() }, |
Step:4 Then check your page editor your problem will fixed.
Feel free to ask any questions if have.
Hi Yuvraj,
I saw you tweeting about themes and thought you might be interested in my new plugin WP Tag Machine and just for $2.
With WP Tag Machine you can 100s of Top Google Rankings Without Building Any Backlinks…
See how it works: https://goo.gl/ZjvrTN
Keep making great stuff!
Hi Jon Watson,
Thanks for comment, I will contact you if need.
My team also doing website design and development you can check here http://zindex.co.in/
Thanks