Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1331542

    Hi,

    I would like to know how can convert in popup_elements a dropdown to a select2 dropdown ?

    array(	
    	"name" 	=> __("Item 1", 'avia_framework' ),
    	"desc" 	=> __("", 'avia_framework' ),
    	"id" 	=> "link1",
    	"type" 	=> "linkpicker",
    	"fetchTMPL"	=> true,
    	"subtype" => array(	
    		__('Single Entry', 'avia_framework' ) =>'single',
    		__('Taxonomy Overview Page',  'avia_framework' )=>'taxonomy',
    	),
    	"std" 	=> ""),	

    Thank you

    • This topic was modified 3 years ago by Erdrol.
    #1331669

    Hey Erdrol,

    Thank you for the inquiry.

    You may have to modify the select or the linkpicker function in the AviaHtmlHelper class. The code is located in the enfold/config-templatebuilder/avia-template-builder/php/class-html-helper.php file. Unfortunately, you will not be able to modify or override this class in your child theme.

    Or just make sure to use the correct selector to re-initialize the default select element as an s2select element. This is the markup of a linkpicker.

    
    <div class="avia_clearfix avia-form-element-container  avia-attach-templating avia-element-linkpicker" id="aviaTBlink-form-container">
    <div class="avia-name-description ">
            <strong>Button Link?</strong>
    <div>Where should your button link to?</div>
    </div>
    <div class="avia-form-element">
            <select class="" id="aviaTBlink" name="aviaTBlink" data-initial="">
    <option value="manually">Set Manually</option>
                <optgroup label="Single Entry">
    <option value="21">A Single Post</option>
    <option value="21">Another Single Post</option>
                </optgroup>
                <optgroup label="Another Option"></optgroup>
    </select></div>
    </div>
    

    Best regards,
    Ismael

    #1332485

    Thank you Ismael

    #1332501

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘popup_elements’ is closed to new replies.