Asri Tadda
asked 9 years ago

I want to make the ‘question submit form’ and ‘answer submit form’ more simple by removing several unused icons and keep few of them, just like on http://www.designwall.com/ask/

Is there any way to make it happened?

2 Answers
DominicStaff
answered 9 years ago

Hi,
The current plugin used for DesignWall has made for only our site and not officially released. So it’s hard for you to have it, unfortunately.
About the plugin you’re using, we used the tinyMCE editor of wordpress default, if you want to remove several unused icons, you can add the following code to the function.php file:

add_filter("mce_buttons", "tinymce_editor_buttons", 99); //targets the first line
add_filter("mce_buttons_2", "tinymce_editor_buttons_second_row", 99); //targets the second line

function tinymce_editor_buttons($content) {
return array(
    "undo", 
    "redo", 
    "separator",
    "bold", 
    "italic", 
    "underline", 
    "strikethrough", 
    "dwqaCodeEmbed",
    //"separator",
    //"bullist", 
    //"separator",
    //add more here...
    );
}

function tinymce_editor_buttons_second_row($content) {
   //return an empty array to remove this line
    return array();
}

Hope this helps !

Asri Tadda
answered 9 years ago

OK Thanks

Powered by DW Question & Answer Pro