{"id":3905,"date":"2023-04-10T21:53:37","date_gmt":"2023-04-10T19:53:37","guid":{"rendered":"https:\/\/www.knowboard.de\/?p=3905"},"modified":"2023-04-10T21:53:40","modified_gmt":"2023-04-10T19:53:40","slug":"tut-how-to-create-a-new-wpbakery-component","status":"publish","type":"post","link":"https:\/\/www.knowboard.de\/tut-how-to-create-a-new-wpbakery-component\/","title":{"rendered":"[TUT] How to create a new WPBakery component"},"content":{"rendered":"\n

As I wrote in \u201cHow to remove unused components from WPBakery<\/a>\u201d we like to create a small plugin \u201csodawebmedia-wpbakery<\/a>\u201d where we add all of our custom WPBakery modules. If you choose not to have a small plugin and prefer to have the code in the theme folder, I recommend creating a separate file for your modules. While you could add all the code in\u00a0functions.php<\/code>, it can get messy and confusing very quickly. Instead, create a folder, something like\u00a0vc-components<\/code>\u00a0and inside create a file that reflects the component you are about to custom code. In our case, we can have\u00a0vc-soda-blockquote.php<\/code>. Now, in\u00a0function.php<\/code>\u00a0we can reference our file.<\/p>\n\n\n\n

Read more: https:\/\/www.sodawebmedia.com\/insights\/how-to-create-a-new-wpbakery-visual-composer-component\/<\/p>\n","protected":false},"excerpt":{"rendered":"

As I wrote in \u201cHow to remove unused components from WPBakery\u201d we like to create a small plugin \u201csodawebmedia-wpbakery\u201d where we add all of our custom WPBakery modules. If you choose not to have a small plugin and prefer to have the code in the theme folder, I recommend creating a separate file for your…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3905","post","type-post","status-publish","format-standard","hentry","category-allgemein","entry","no-media"],"_links":{"self":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/comments?post=3905"}],"version-history":[{"count":1,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3905\/revisions"}],"predecessor-version":[{"id":3908,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3905\/revisions\/3908"}],"wp:attachment":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/media?parent=3905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/categories?post=3905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/tags?post=3905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}