Viewing 8 reply threads
  • Author
    Posts
    • #5553
      hirschbrat
      Member

      Hello,

      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.

    • #5556
      Steve
      Keymaster

      @hirschbrat– Which version of Piklist are you using? Also, can you post your form code here.

    • #5560
      hirschbrat
      Member

      Hi 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'
        ));
        
    • #5567
      Steve
      Keymaster

      @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.
    • #5569
      hirschbrat
      Member

      Hello 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?

    • #5575
      Steve
      Keymaster

      @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:

      1. Add this to your theme css:
          .dashicons-editor-help:before {
          	content: "\f223";
          }
        
      2. 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' );
        }
        
    • #5580
      hirschbrat
      Member

      Thank you! I will wait for the next version of piklist.

    • #7609
      hirschbrat
      Member

      The help icon are still not shown when logged off in piklist v0.9.9.9

    • #7629
      Steve
      Keymaster

      Did you implement the fix I posted?

Viewing 8 reply threads
  • You must be logged in to reply to this topic.