Custom Block Title for Custom Registered Blocks

Posted in: Newspaper
Post count: 108

Hi Guys, we’ve registered a new custom block but there is no option for a ‘Custom title for this block:’ in the visual composer?

Params are as follows;

“params” => array_merge(
self::get_map_block_general_array(),
self::get_map_filter_array(),
self::get_map_block_ajax_filter_array(),
self::get_map_block_pagination_array()
)

Should the option be part of the general_array or are custom titles not allowed on custom blocks.

Thanks
Matt

Post count: 22421

Hello Matt,

The new block should have a title as well. I have just tested this and I have a title: https://www.screencast.com/t/rVCk0nY9h
Please read this guide:
https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
Please also note that the theme api system represents customization and is usually not covered by the theme support so if you encounter any issues while trying to add custom elements to the theme, you will have to get help from someone code-savvy as the theme support does not cover the api custom implementation.

Thank you for your understanding.

Post count: 108

Hi Bogdan, after much experimentation I managed to figure out what was causing the issue.

I simply had to move the position at which the new modules and blocks were being defined in the td-config.php file, I had all custom definitions at the top of the file which was working fine apart from the params for widgets and blocks, all sorted now however and I’ve moved them to the relevant sections within the config file.

Matt

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