Support » Plugin: Custom Sidebars - Dynamic Widget Area Manager » hide disabled Pro buttons?

  • Resolved mpmchugh

    (@mpmchugh)



    Is there a way to hide/disable the inactive Pro Features buttons on the default sidebar widgets?

    They interfere with JetPack’s visibility button, causing it to wrap to another line, and they partially overlap the delete | close links.

    They really are kind of overkill as a nag for the Pro version on every single widget.

    -Michael

    https://wordpress.org/plugins/custom-sidebars/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hi Michael,

    I hope you are well today and thank you for your question.

    You can hide the nactive Pro Features buttons on the default sidebar widgets by adding the following CSS code in your site using the below plugin.

    http://wordpress.org/plugins/add-admin-css

    .button.csb-visibility-button,
    .button.csb-clone-button,
    .csb-pro-layer .pro-info {
       display: none;
    }

    Best Regards,
    WPMU DEV

    Thanks.

    However, WPMU DEV should really re-think this heavy-handed up-sell inside the interface. It’s not endearing in the least.

    At least give the user a way to disable without having to use another plugin and css code.

    :-\

    -Michael

    Plugin Contributor Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hi Michael,

    The CSS code is not working for you due to CSS specificity issue. To resolve this issue try using any of the following CSS code replacing preciouslt added code.

    .button.csb-visibility-button,
    .button.csb-clone-button,
    .csb-pro-layer .pro-info {
       display: none !important;
    }

    or

    .csb-pro-layer {
       display: none !important;
    }

    If you don’t want to use any other plugin to hide it then try adding following code in the functions.php file of your child theme.

    add_action('admin_head', 'my_custom_css');
    function my_custom_css() {
      echo '<style>
        .csb-pro-layer {
    	   display: none !important;
    	}
      </style>';
    }

    We will consider on providing option to hide it.

    Cheers,
    WPMU DEV

    I’d already previously accounted for the CSS specificity, and tried both your suggestions, and other variations myself. None worked with the Add Admin CSS plugin, which is why I’d posted it in it’s support area.

    Adding it via the child theme’s functions.php file did work.

    Thanks,
    Michael

    Plugin Contributor Predrag Dubajic WPMU DEV Support

    (@wpmudev-support1)

    Hi Michael,

    Glad to know it’s working for you after adding in child theme’s functions.php file 🙂

    It’s working fine for me using all of the above provided solutions.

    Some time Add Admin CSS plugin faces issue with the CSS code containing spaces in that case you can just try removing unwanted spaces from CSS code like following.

    .csb-pro-layer{display:none !important;}

    Cheers,
    WPMU DEV

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘hide disabled Pro buttons?’ is closed to new replies.