How to add thumbnail or Image for Beaver Builder Custom Template

When we Create A custom Template In the Beaver Builder .We are not able to Add Custom Thumbnail For that Templates.

By Default Beaver Builder Uses Feature Image of template as a Thumbnail and Featured Image is Hidden in Beaver Builder .

Beaver Builder Uses a Post type “fl_builder_register_template_post_type_args” .If you check the core files in there are using apply filter .

BY Using the Apply Filter we can add Extra Parameter As “thumbnail” Under supports array below is the syntax how we can add.

add_filter('fl_builder_register_template_post_type_args','filter_thumbnail');
function filter_thumbnail($args){
    $args['supports'][] ='thumbnail';
    return $args;
}

Place the Above Code in Function.php or create a plugin and place the Code

After Placing You can Go to Template tab and Create or edit the template and set the featured image .

Add a Comment

Your email address will not be published. Required fields are marked *

nineteen − 8 =