Inglebard
Inglebard

Reputation: 437

Visual Composer root shortcode container

I try to add a custom shortcode to visual composer in their editor with the function vc_map. I succeed to create a shortcode container but shortcode container are always in a "Row" element.

What is the way to create a root shortcode container to avoid an unnecessary html structure ?

Upvotes: 10

Views: 672

Answers (1)

Kondal
Kondal

Reputation: 2980

“Row“ is the main content element of Visual Composer. Rows are used to divide your page into the logic blocks with columns, columns later will hold your content blocks. Rows can be divided into the layouts (eg. 1/2 + 1/2, 1/3 + 1/3 + 1/3, and so on). Your page can have unlimited number of rows. To change row's position, click and drag row's drag handler (top left row's corner) and drag row around (vertical axis).

Row stretch:- Select stretching options for row and content (Note: stretched may not work properly if parent container has "overflow: hidden" CSS property).

Visual composer Content Elements

Upvotes: 1

Related Questions