Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: How to enable icons? #1232909

    figured it myself… I needed to remove the element from the disabled_assets array in template-builder

    add_filter('avf_disable_frontend_assets', function ($assets) {
    	if(in_array('av_font_icon', $assets)) {
    		unset($assets['av_font_icon']);
    	}
    	return $assets;
    }, 50);
    in reply to: Developer Documentation #1194060

    Hi Victoria,
    thank you, so here are my first few questions:

    1) When inserting an image using a "type" => "image" control, how can I fetch the attachment id instead of an image url so I can output an image with a srcset?

    [
    					'name' => __('Choose Image', 'avia_framework'),
    					'desc' => __('Either upload a new, or choose an existing image from your media library', 'avia_framework'),
    					'id' => 'content_img',
    					'type' => 'image',
    					'title' => __('Insert Image', 'avia_framework'),
    					'button' => __('Insert', 'avia_framework'),
    				],

    2) When using a template to insert a field, how can I overwrite attributes e.g. the id ? E.g. I would like to get my_link instead of link which is provided by the template linkpicker_toggle

    [
    					'id' => 'contact_link',
    					'type' => 'template',
    					'template_id' => 'linkpicker_toggle',
    					'subtypes' => array('no', 'manually', 'single'),
    				],

    3) How can I add an type tiny_mce field with a different id than content? Issue: When I add a tiny_mce field with a different id I can work with it set styles and the content is saved but when I reopen the popup element the content is turned into escaped html inside the visual tab.

    array(
    					'name' => __('Features', 'tfk'),
    					'desc' => __('Enter some content here', 'avia_framework'),
    					'id' => 'features',
    					'type' => 'tiny_mce',
    					'std' => __('Toggle Content goes here', 'avia_framework'),
    				),
Viewing 2 posts - 1 through 2 (of 2 total)