Snippets / HTML
HTML
Display form field descriptions by default, without requiring users to click the info icon.
Q
querlyquar
·
127 views
·
Updated 1 year ago
From time to time someone on the group asks about this, so I decided to add something here that got lost on the getvoxel.io forum, and the solution itself was added by Arian.
Copy templates/widgets/create-post/title-field.php to child theme
Simple change, but you have to do it for every field in the create-post folder
Copy templates/widgets/create-post/title-field.php to child theme
Simple change, but you have to do it for every field in the create-post folder
Find this part
<div class="vx-dialog" v-if="field.description">
<?= \Voxel\get_icon_markup( $this->get_settings_for_display('info_icon') ) ?: \Voxel\svg( 'info.svg' ) ?>
<div class="vx-dialog-content min-scroll">
<p>{{ field.description }}</p>
</div>
</div>
HTML · 6 lines
Replace with this
<small>{{ field.description }}</small>
HTML · 1 lines
Discussion
Ask a question or share how you used this.
Log in
to join the discussion.
No comments yet — be the first.