wp-shortcake / shortcake

Shortcake makes using WordPress shortcodes a piece of cake.
GNU General Public License v2.0
664 stars 142 forks source link

listItemImage doesn't appear to work #398

Open jakejackson1 opened 9 years ago

jakejackson1 commented 9 years ago

I was following the dev.php example and after getting my shortcode showing in the editor I tried to change the default image icon when loading the shortcode (it appears to be the "Camera and Music" icon).

It looks like the listItemImage option should allow this behaviour but when I changes this to something like dashicons-admin-site that icon never shows up (the default continues to show).

danielbachhuber commented 9 years ago

@blueliquiddesigns Apologies for the late reply. Did you get this figured out? If not, can you share the code you're using to register the shortcode UI?

jakejackson1 commented 9 years ago

No. I wasn't able to get this working.

The relevant shortcode registration is below:

        shortcode_ui_register_for_shortcode( 'gravitypdf', array(
            'label' => __( 'Gravity PDF', 'gravitypdf' ),

             'listItemImage' => 'dashicons-admin-site',
        ) );

The site is currently run locally using VVV, WordPress is installed in its own directory and I'm running Shortcake v0.4.0.