Hi,
After talking with my colleagues seems that the simple way to make a black is to copy an existing block, change his name (not only of the file, but also in the file : http://screencast.com/t/jcst0tJi), then take a look at the bottom of the file, the last line register the block in the Visual composer : http://screencast.com/t/a6KjxMIz
also take a look at the Visual composer documentation maybe you will find it useful:
http://kb.wpbakery.com/index.php?title=Extend_Visual_Composer
http://kb.wpbakery.com/index.php?title=Visual_Composer_tutorial
hope this help
Thanks for you message.
Radu A.
hi,
also be sure to add your new module here: http://screencast.com/t/uUOKHHJq5Ixk
Thanks for you message.
Radu A.
Hey Radu! Can you give me an explanation of these:
$buffy .= $td_block_layout->open_row();
$buffy .= $td_block_layout->close_row();
and this: (could apply to 4/6 etc)
$buffy .= $td_block_layout->open6();
$buffy .= $td_block_layout->close6();
Thanks! If you help me with this I’d be happy to make a video explaining it to others so that we can have a better understanding of how users can create custom blocks! Thanks!
I have it partially working but it throws a PHP Fatal Error of too many nestings in l10.php
Hi,
That is used to build the layout on the grid.
As you know the grid work like:
<div class="wpb_row">
<div class="span6"></div>
<div class="span6"></div>
</div>
This will create a row with 2 columns.
This $buffy .= $td_block_layout->open_row(); will open a row, will echo: <div class="wpb_row">
This: $buffy .= $td_block_layout->close_row(); will close the row, will echo a </div>
This $buffy .= $td_block_layout->open6(); will open a span6 and $buffy .= $td_block_layout->close6(); will close it.
Is a little tricky.
Hope this help!