Home Forums WC Vendors Pro Support Remove buttons from the editor in Store Settings

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #68179
    Malavika Gupta
    Participant

    Is there a way to remove some buttons from the editor in Store Settings-> Store Description and Seller Info?

    Thank you

    #68206
    Anonymous
    Inactive

    You can change options in wp-admin.

    Wocommerce -> WC Vendors

    #68835
    Malavika Gupta
    Participant

    Thanks Fashioma. I want to disable some of the buttons, not all. like the insert/remove hyperlink.

    #68855
    Anna
    Member

    @malavika-prav
    No– unless you can find a way to edit the wordpess tinyMCE editor.
    We either provide a form with editing capabilities(the wordpress editor form) or without. You can check this option in wp amdin > woocommerce > wc vendors > general: Enable HTML for a vendor’s shop description by default. You can enable or disable this per vendor by editing the vendors user account.

    #68886
    Malavika Gupta
    Participant

    I do have this code in Child theme/functions.php file while selectively disables buttons from all the tinyMCE Editors in Woocommerce but the code has no effect on Pro Dashboard -> Store Description. I am just guessing if there is any other place where I need to put the code to make the changes effective in the tinyMCE editor of store description.

    //Remove Buttons from the Visual Editor
    // Button[13] is for FullScreen
    function remove_mce_buttons($buttons) {
    unset($buttons[0]);
    unset($buttons[2]);
    unset($buttons[5]);
    unset($buttons[6]);
    unset($buttons[7]);
    unset($buttons[8]);
    unset($buttons[9]);
    unset($buttons[10]);
    unset($buttons[11]);
    unset($buttons[13]);
    return $buttons;
    }
    add_filter(‘mce_buttons’, ‘remove_mce_buttons’ );

    function remove_mce_buttons_2($buttons) {
    unset($buttons[0]);
    unset($buttons[1]);
    unset($buttons[3]);
    unset($buttons[4]);
    unset($buttons[5]);
    unset($buttons[6]);
    unset($buttons[7]);
    unset($buttons[10]);
    return $buttons;
    }
    add_filter(‘mce_buttons_2’, ‘remove_mce_buttons_2’ );

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.