How to add item id to visual composer

I tried to figure out how to add an identifier to the visual element of the composer, but I cannot figure out how to do it. I tried to edit the line, but the only parameters I have are a custom CSS class, Parallax, Full Width and Font Color, but without ID everywhere. I tried putting id = "something" and Id = "something" in the short code without luck.

I need to do this in order to link to some lines on the same page. If there is another workaround, I really want to know.

Thanks in advance for any response.

+4
source share
6 answers

, Raw html ID:

<div id="section"><div>

, .

, !

+4

: id function.php:

$attributes = array(
'type' => 'textfield',
 'heading' => "HTML ID",
 'param_name' => 'element_id',
 'value' => '',
 'description' => __( "Assign an ID to the row", "discprofile" )
);

vc_add_param ('vc_row', $attributes);

Html ID.

: https://wpbakery.atlassian.net/wiki/pages/viewpage.action?pageId=524335

+1

Visual Composer Row ID. v4.5 .

+1

, , . , .

:

  • , , , ID.
  • . , .
  • TEXT . . , .

, !

0
source

This feature is present in some topics, such as JUPITER, but not in most.

A quick way to achieve this is to use the RAW HTMLvisual composer element instead of the Shortcode window you are using.

0
source

el_id

Use el_id= 'something'.


Short code example:

[vc_row el_id = 'something'] CONTENT [/ vc_row]


It will be generated this way in the DOM:

<div id="something" class="vc_row wpb_row vc_row-fluid">

0
source

All Articles