• Resolved grafica.villcom

    (@graficavillcom)


    Hi,
    I’m testing the event form on my frontend but I have a problem. I’m using the visual editor for the description but the “Insert media button” is not working. In fact, if I look at the code with Firebug the button href is not set (#).

    This is the code:

    <div id="wp-em-editor-content-media-buttons" class="wp-media-buttons">
    <a id="insert-media-button" class="button insert-media add_media" title="Aggiungi media" data-editor="em-editor-content" href="#">
    <span class="wp-media-buttons-icon"></span>
    Aggiungi media
    </a>
    </div>

    How can I fix this? Alternatively, how can I remove the button?

    https://wordpress.org/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    This sounds like a jQuery conflict caused by another plugin or your theme. Can you test with all other plugins deactivated and while running the default WordPress theme?

    Thread Starter grafica.villcom

    (@graficavillcom)

    I tested the plugins and they’re ok. At the moment I can’t test the default theme but I tried my theme and Events Manager on another WordPress installation and it’s working fine.

    I can give you the link of the form: link

    Any ideas?

    Thank you for your help!

    You really need to test with all other plugins deactivated and while running the default theme at the same time – it might be there are two conflicts, one in the theme and one in a plugin.

    Thread Starter grafica.villcom

    (@graficavillcom)

    Thank you for your advice. I fixed the problem in another way because I really don’t need users to add media. I removed the button using the array of wp editor in my form.
    So if someome needs to do the same, this is the code:

    <?php wp_editor($EM_Event->post_content, 'em-editor-content', array('textarea_name'=>'content', 'media_buttons' => FALSE) ); ?>

    Thank you for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Insert media button broken in visual editor’ is closed to new replies.