Support

Account

Home Forums Front-end Issues Custom buttons etc not showing on front-end form

Solved

Custom buttons etc not showing on front-end form

  • Hey guys

    I have a custom button in my WYSIWYG editor in the admin which enables the placement of a shortcode in the content.

    I’m pretty sure the reason they’re not showing in the front-end form, is because the actions that trigger them are for admin_head and admin_enqueue_scripts.

    How do I get these to work on my front end form?

  • Answering my own question:


    // puts the scripts + styles into admin
    add_action('admin_head', 'ggh_add_my_tc_button');
    add_action('admin_enqueue_scripts', 'ggh_button_css');

    // puts the scripts + styles into front-end
    add_action('wp_print_scripts', 'ggh_add_my_tc_button');
    add_action('wp_print_styles', 'ggh_button_css');

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Custom buttons etc not showing on front-end form’ is closed to new replies.