Page BuildersVisual Composer
Page Builders

Visual Composer Reference

Technical documentation for using Respira with Visual Composer: element trees, targeting strategies, and safe editing workflows.

Visual Composer Reference

Technical documentation for using Respira with Visual Composer.

About Visual Composer

Visual Composer is a WordPress website builder that provides a frontend editor with 500+ elements and templates. Note: Visual Composer is different from WPBakery (formerly Visual Composer Page Builder). This reference covers the newer Visual Composer Website Builder.

Data Structure

Visual Composer stores page content as JSON in post meta. The structure consists of nested elements with unique IDs:

{
  "elements": {
    "abc123": {
      "id": "abc123",
      "parent": false,
      "tag": "row",
      "order": 0
    },
    "def456": {
      "id": "def456",
      "parent": "abc123",
      "tag": "column",
      "order": 0,
      "size": { "all": "100" }
    },
    "ghi789": {
      "id": "ghi789",
      "parent": "def456",
      "tag": "basicButton",
      "order": 0,
      "title": "Get Started",
      "url": "/contact",
      "customClass": "hero-cta"
    }
  }
}

Module Identification

Add a custom class in Element Settings:

{ "admin_label": "hero-cta" }

By Element ID

Each element has a unique ID:

{ "admin_label": "ghi789" }

By Path

{ "path": "elements.ghi789" }

By Type and Content

{ "type": "basicButton", "match_content": "Get Started" }

Common Elements

ElementTagKey Attributes
Text BlocktextBlockoutput (HTML content)
ButtonbasicButtontitle, url
Single ImagesingleImageimage, alt
Headingheadingtext, headingTag
IconiconiconPicker, link
Rowrowlayout settings
Columncolumnsize
Sectionsectionlayout settings
Hero SectionheroSectionbackground, content
Call to ActioncallToActiontitle, description, buttonText

Example Prompts for Visual Composer

Content Updates:

  • "Update the element with class 'hero-cta' to link to /pricing"
  • "Change the heading in element 'ghi789' to 'New Headline'"
  • "Replace the footer address text"

Structure Queries:

  • "Extract Visual Composer structure for page 42"
  • "List all button elements on the homepage"
  • "Show me all rows and their columns"

Bulk Updates:

  • "Find all basicButton elements with 'Learn More' and change to 'Get Started'"
  • "Update the phone number in all text blocks"
  • "Change all H3 headings to H2"

Hub Elements & Templates

Visual Composer Hub elements and templates are supported:

  • "List all saved templates" → Shows template library
  • "Update the saved 'Contact Section' template"

Visual Composer's global areas are editable:

  • "Update the header template button"
  • "Change the footer copyright text to 2025"

Limitations

  • Design options: Margins, padding, and responsive settings may need the visual editor
  • Animations: Element animations are preserved but need the builder to modify
  • Hub elements: Third-party Hub elements have varying support
  • Dynamic content: Dynamic field connections are preserved but not directly editable

When to Use This Tool

  • Content updates - Change text, links, and images without opening the builder
  • Template editing - Update saved templates efficiently
  • Bulk changes - Fix repeated content across multiple pages
  • Post-launch maintenance - Make quick edits after client handoff

See Also

Was this page helpful?
Built with Documentation.AI

Last updated Dec 15, 2025