Has anyone successfully made CUSTOM BLOCKS that show up in VISUAL COMPOSER?

Posted in: Newspaper
Post count: 17

I’d love some help with this.. I made a new block but I can’t get it to show up so that I can actually use it!!! Would love some help thanks!

Post count: 3343

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.

Post count: 854

hi,
also be sure to add your new module here: http://screencast.com/t/uUOKHHJq5Ixk

Thanks for you message.
Radu A.

Post count: 17

RADU! THANK YOU! *that* is what I was looking for!!! Let’s see how it goes!!

Post count: 17

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

Post count: 3343

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!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.