{"id":6217,"date":"2017-01-20T22:57:58","date_gmt":"2017-01-21T03:57:58","guid":{"rendered":"https:\/\/themespress.ca\/?p=6217"},"modified":"2022-09-03T20:28:59","modified_gmt":"2022-09-04T00:28:59","slug":"add-tinymce-wordpress-buttons-by-default","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/add-tinymce-wordpress-buttons-by-default\/","title":{"rendered":"Add TinyMCE WordPress Buttons by Default"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>With this tutorial, we will show how to add a function which will automatically add TinyMCE WordPress buttons by default. This tutorial was created after a lot of our clients noticed the buttons had disappeared after a core WordPress update.<\/p>\n<p>With this function, all of your TinyMCE buttons will be accessible in your WordPress pages and posts.<\/p>\n<p>Copy\/paste this function in your functions.php file:<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<div id=\"ts-enlighterjs-container-7929615\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-7929615\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"standard\" data-enlighter-theme=\"enlighter\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ ENABLE ALL EDITOR \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ \n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ \nfunction enable_more_buttons($buttons) { \n\t$buttons[] = &#039;fontselect&#039;; $buttons[] = &#039;fontsizeselect&#039;; \n\t$buttons[] = &#039;styleselect&#039;; $buttons[] = &#039;backcolor&#039;; \n\t$buttons[] = &#039;newdocument&#039;; $buttons[] = &#039;cut&#039;; \n\t$buttons[] = &#039;copy&#039;; $buttons[] = &#039;charmap&#039;; \n\t$buttons[] = &#039;hr&#039;; $buttons[] = &#039;visualaid&#039;; \n\treturn $buttons; \n} \n\nadd_filter(&#039;mce_buttons_3&#039;, &#039;enable_more_buttons&#039;); \n\n\nfunction myformatTinyMCE( $in ) { \n   $in[&#039;wordpress_adv_hidden&#039;] = FALSE; return $in; \n}\nadd_filter( &#039;tiny_mce_before_init&#039;, &#039;myformatTinyMCE&#039; ); <\/pre><\/div>\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>Short, but very important, tutorial for managing your pages or posts.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"With this tutorial, we will show how to add a function which will automatically add TinyMCE WordPress buttons by default. This tutorial was created after a lot of our clients<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/add-tinymce-wordpress-buttons-by-default\/\">Read More<\/a><\/div>","protected":false},"author":81,"featured_media":4586,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[313],"class_list":["post-6217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-plugins"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/comments?post=6217"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4586"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=6217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=6217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=6217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}