Visual Composer

Visual Composer

Visual Composer API allows you to develop your own custom elements for the website builder. With custom elements, you are in charge of your element design and functionality which is crucial for advanced projects and allows perfectly aligned element choice to your brand.
This section contains all the information you need to develop custom elements, it will guide you on how to get started, provide information about hooks, attributes, and offer examples.

What is Visual Composer Website Builder Editor?

To get started, you need to understand how the Visual Composer Website Builder Editor works. The Editor is WYSIWYG module based editor which has inner and public API to manage elements and components.
The editor works with elements as React components. These components must be built with Webpack and enqueued via API hooks (WordPress actions). Every element consists of few parts:
  1. Thumbnail Image – a small image (100×100 pixels) that will represent an element in the ‘Add Element’ window;
  2. Preview Image – a large image (520×240 pixels) visible on Thumbnail hover;
  3. Description – a description that appears on hover together with the Preview image;
  4. Category – element category;
  5. React-based component.

What is Visual Composer Element?

The element is an independent component of the system which represents HTML based block with the ability to output media and dynamic content. Visual Composer offers a wide range of pre-defined content elements which can be downloaded from the Visual Composer Hub. Visual Composer API allows extending the list with your own elements – these elements will not be available in the Hub but will be instantly displayed in the ‘Add Element’ window.

Tutorial Videos


    • Related Articles

    • Page Builders

      Over the years CRU has used different page builders across our sites. With the more recent changes to Wordpress and the way we develop websites, we move into using the newer Gutenberg Blocks as well as our favourite, Advanced Custom Fields. As it is ...
    • WP Bakery

      Getting Started See links below: WPBakery Page Builder Tutorial for Beginners Start Building Page or Use Default Templates Video Tutorials We colated a list of videos that can help and guide you. WPBakery Page Builder Navigation Interface Start ...
    • On Page SEO

      Description: Search Engine optimisation includes a number of strategies that fall into two main categories - Off-Page SEO (things that occur off your site that often cannot be controlled) and on-page SEO. On Page SEO is the practice of optimising web ...
    • The My Account Page

      This guide is an overview of the functionality available to customers who are logged in to your store via the My Account page.   Dashboard Should a customer visit the My Account page prior to logging in, the login prompt is presented. Once logged in, ...
    • Custom quantity input on shop page

      This is a custom coded feature and not a plugin  Installation 2 CRU CREDIT Setup (optional) N/A Ease Of Use Easy Want this feature? Request Here Purchase CREDITS  Here Custom quantity input on shop page Add + and - button on the shop page so customer ...