- This topic has 8 replies, 2 voices, and was last updated 5 years, 2 months ago by
Steve.
-
AuthorPosts
-
-
January 11, 2016 at 4:35 pm #5553
hirschbratMemberHello,
I set up a front end form which is publicity available (‘Logged in: false’) and added the ‘help’ parameter to some fields.
When I am logged in, the help icons are shown in the form. When not logged in, the help icons are not shown. -
January 11, 2016 at 5:15 pm #5556
SteveKeymaster@hirschbrat– Which version of Piklist are you using? Also, can you post your form code here.
-
January 11, 2016 at 5:39 pm #5560
hirschbratMemberHi Steve,
I am using version 0.9.9.7
This is my frontend form code:
/* Title: Post Submit Method: post Message: Data saved in Piklist Demos, under the Validation tab. Logged in: false Redirect: bestellen */ // Where to save this form piklist('field', array( 'type' => 'hidden' ,'scope' => 'post_meta' ,'field' => 'post_type' ,'value' => 'fvb_order' )); piklist('field', array( 'type' => 'text' ,'scope' => 'post_meta' ,'field' => 'post_title' ,'label' => __('Titel', 'piklist-demo') ,'help' => 'Help' )); // Submit button piklist('field', array( 'type' => 'submit' ,'field' => 'submit' ,'value' => 'Submit' )); -
January 12, 2016 at 10:23 am #5567
SteveKeymaster@hirschbrat— You’re code is working for me. Guessing your theme or another plugin is conflicting with it.
See attached screenshot.
Attachments:
You must be logged in to view attached files. -
January 12, 2016 at 10:31 am #5569
hirschbratMemberHello Steve,
i can see the icon, too – but only if I am logged in.
Have you tried to log out from WordPress and see whether the icon is still displayed on the form? -
January 12, 2016 at 11:07 am #5575
SteveKeymaster@hirschbrat– Whoops! I missed that..sorry. 😉
Ok, you found a small bug that we’ll get fixed. WordPress only loads Dashicons when you’re logged in, and the “?” is a dashicon. Here’s a temporary solution:
- Add this to your theme css:
.dashicons-editor-help:before { content: "\f223"; } - Add this to your plugin or theme’s functions.php file:
add_action( 'wp_enqueue_scripts', 'my_dashicons' ); function my_dashicons() { wp_enqueue_style( 'dashicons' ); }
- Add this to your theme css:
-
January 12, 2016 at 1:52 pm #5580
hirschbratMemberThank you! I will wait for the next version of piklist.
-
December 3, 2016 at 8:54 am #7609
hirschbratMemberThe help icon are still not shown when logged off in piklist v0.9.9.9
-
December 9, 2016 at 12:40 am #7629
SteveKeymasterDid you implement the fix I posted?
-
-
AuthorPosts
- You must be logged in to reply to this topic.