WP Bakery Page Builder Focus Image
New image parameter for WPBakery pagebuilder with focus point
by Camilo Tapia · github.com/24hr-malmo/wp-page-builder-image-focus-point · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/24hr-malmo/wp-page-builder-image-focus-point/archive/refs/heads/master.zipFrom the readme
wp-page-builder-image-focus-point
New image parameter for WPBakery pagebuilder with focus point
How to use:
First make sure that the plugin is activated in WP.
When creating a custom module for WKBakery Page Builder, instead of using as param type, use .
The following code is not a complete example, it just shows how to use the parameter.
php
$settings = array(
'name' = ('Spot Element', 'rawb'),
'base' = 'vcspot',
'class' = '',
'icon' = 'icon-wpb-single-image',
'description' = ('Spot element', 'rawb'),
'category' = ('Content', 'rawb'),
'params' = array(
array(
'type' = 'focusimage', // ( 'Image', 'rawb' ),
'paramname' = 'image',
'value' = '',
'description' = ( 'Select image from media library.', 'jscomposer' )
),
),
...
);
vcmap( $settings );