Comments ccmodesto started the conversationDecember 10, 2019 at 11:29pmHow can i choose the icon type on the front end form? 894Zhivko repliedDecember 13, 2019 at 1:03pmHi,From the "Select Icon" dropdown. Stachethemes Developerccmodesto repliedDecember 15, 2019 at 5:33pmi think i am missing something, what i need to do on the front end event submit form, is allow for choosing Date instead of icon, like you can on the backend. i realize i can drop down to select an icon, but i want to change to Date 894Zhivko repliedDecember 23, 2019 at 10:52amHi,This selector is currently missing in the builder. I'll add it in the next update.Meanwhile you could add filter that will automatically set the icon type to "date". Example:Place this code in your theme functions.php file: add_filter('stec_insert_post', function($data) { if ($data['post_type'] !== 'stec_event') { return $data; } $task = \Stachethemes\Stec\Admin_Helper::post('task', null); if ($task === 'front_create_event') { $data['meta_input']['icon_type'] = 'date'; } return $data;}); Stachethemes Developerccmodesto repliedDecember 24, 2019 at 12:56amThat is great thank You! Sign in to reply ...
How can i choose the icon type on the front end form?
Hi,
From the "Select Icon" dropdown.
Stachethemes Developer
i think i am missing something, what i need to do on the front end event submit form, is allow for choosing Date instead of icon, like you can on the backend. i realize i can drop down to select an icon, but i want to change to Date
Hi,
This selector is currently missing in the builder. I'll add it in the next update.
Meanwhile you could add filter that will automatically set the icon type to "date".
Example:
Place this code in your theme functions.php file:
Stachethemes Developer
That is great thank You!