Support » Plugin: WP User Frontend - Membership, Profile, Registration & Post Submission Plugin for WordPress » How to remove the button from the WordPress visual editor

  • Resolved ikihinojosa

    (@ikihinojosa)


    My page still under construction yet (Coming soon mode) so that is why I’m not providing a link…

    I love your plugin!!

    It’s perfect for my website when it comes to woo commerce upload products form..

    My question is: How can I remove button “Add forms” from the Word press visual editor…

    the reason is that for the front end users I don’t want to give this option, as they have access to other pages (classifieds for example) where they see the visual editor as well, but I don’t want them to be able to insert or create any kind of forms.. (Only the add media button for the visual editor is what i need to have there.

    thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hello @ikihinojosa

    How can I remove the button “Add forms” from the WordPress visual editor

    → I guess you are using the classic editor mode; that’s why you are getting the “Add Form” button. Otherwise, it shouldn’t be available with the Gutenberg editor.

    However, you can use this below snippet on your theme/child-theme’s functions.php to hide the button from the backend.

    add_action('admin_head', 'custom_css_to_hide_wpuf_add_form_button');
    function custom_css_to_hide_wpuf_add_form_button() {
      echo '<style>
    		.button.thickbox.insert-form {
    			display: none;
    		} 
      </style>';
    }

    I hope this helps.
    Thanks.

    Thread Starter ikihinojosa

    (@ikihinojosa)

    Hi thanks for the answer…

    I tried the snippet, and it gives me an error on line one

    I try it in the child theme, as well than in a plugging called snippets..

    same error

    Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hi again,

    Whats the error you are having? Share an screenshot of that.

    I also tried with the code on my testing site, which works fine (watch this).

    Thanks.

    Thread Starter ikihinojosa

    (@ikihinojosa)

    Hi MM Aurangajeb

    Thanks for the reply…

    Weird! I tried your code again, just to make sure… and now it worked fine!

    Maybe a miss copying something?

    But yes! Now it works… thanks so much!

    Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hi @ikihinojosa,

    Thanks for the acknowledgment & glad to hear that it was helpful! 🥂

    If you’re comfortable with it, it’d be awesome if you could share a review on our wp.org profile!

    Cheers!

    Thread Starter ikihinojosa

    (@ikihinojosa)

    Did already!

    Fantastic plugin!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove the button from the WordPress visual editor’ is closed to new replies.