Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @jhutson323 !

    I trust you’re doing great today!

    At the moment Forminator doesn’t have an option to deactivate this button when using the Classic Editor on post edit screen, however it’s possible to do that using a plugin that would add custom CSS to the admin area. Our free plugin Branda has this option: https://www.ads-software.com/plugins/branda-white-labeling/

    Docs on this feature: https://wpmudev.com/docs/wpmu-dev-plugins/branda/#custom-css

    To hide this button you can use the following CSS:

    #forminator-generate-shortcode { display: none !important; }

    Another option of doing this without a plugin would be to save the following code as a .php file and upload it to /wp-content/mu-plugins/ directory:

    <?php
    function wpmudev_hide_forminator_generate_shortcode_button() {
      echo '<style>
        #forminator-generate-shortcode { display: none !important; }
      </style>';
    }
    
    add_action( 'admin_head-post.php', 'wpmudev_hide_forminator_generate_shortcode_button' );
    add_action( 'admin_head-post-new.php', 'wpmudev_hide_forminator_generate_shortcode_button' );
    

    Warm regards,
    Pawel

    Thread Starter The Open Market

    (@jhutson323)

    Beautifully done, thank you. I’m excited to explore this Branda plugin. I hadn’t heard of it before, but it seems like it will solves several issues I’ve been looking at. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable the #forminator-generate-shortcode button’ is closed to new replies.