-
AuthorPosts
-
December 4, 2021 at 3:34 pm #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.
December 6, 2021 at 7:04 am #1331669Hey 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,
IsmaelDecember 12, 2021 at 3:17 pm #1332485Thank you Ismael
December 12, 2021 at 10:50 pm #1332501Hi,
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 -
AuthorPosts
- The topic ‘popup_elements’ is closed to new replies.