How to remove buttons from gutenberg toolbar
How to remove buttons from gutenberg toolbar
How to remove buttons from gutenberg toolbar
Sorry, but no. 🙂 You can’t simply use the html-button in the wysiwyg-editor. Both are different programms and have nothing in common except for their location. You’d have to unregister the current buttons, write code for a new one (that fits your likings) and then add this one. You’ll find hundreds of tutorials for adding … Read more
There is an action before the Trash link: post_submitbox_start. You can use it to add content to that box. The Trash has a float:left, so it will move to the side. Example: add_action( ‘post_submitbox_start’, function() { print ‘<button>Hey!</button>’; }); Result:
it you’re not seeing the buttons, try to call QTags._buttonsInit(); right after you call the quicktags( settings ); function. quicktags(settings); QTags._buttonsInit(); Following also works for me qt_editor = new QTags( { ‘id’: ‘my_editor’, ‘buttons’: ‘strong,em,link’ } ); QTags._buttonsInit(); Also, it seems that adding a button via QTags.addButton() function also makes your toolbar to display qt_editor … Read more
Two possibilities: Use the the_content-filter, or just call it in your template. You can just throw the plugin in your folder, or add one (or both) function(s) in your themes functions.php file. The filter triggers only for the post format link, while the template tag can be used more universal – in the loop. As … Read more
To make the admin sidebar menu always be collapsed, try adding the following code in the functions.php file of your child theme, or add it in your site using a plugin like Code Snippets, or Add Actions and Filters. global $user_ID; $user_fold = get_user_meta( $user_ID, ‘wp_user-settings’, true ); $exp_array = explode( “&”, $user_fold ); $search_array … Read more
I believe that you have already registered your shortcode. Now what we need to do is to initiate the Button. Once the shortcode is registered [ph_min] let’s check if user can use rich editing: function add_highlight_button() { if ( ! current_user_can(‘edit_posts’) && ! current_user_can(‘edit_pages’) ) return; if ( get_user_option(‘rich_editing’) == ‘true’) { add_filter(‘mce_external_plugins’, ‘add_tcustom_tinymce_plugin’); add_filter(‘mce_buttons’, … Read more
Try like this: <script type=”text/javascript”> tinymce.init({ selector: “textarea”, toolbar: “mybutton”, setup: function(editor) { editor.addButton(‘mybutton’, { type: ‘splitbutton’, text: ‘My button’, icon: false, onclick: function() { editor.insertContent(‘Main button’); }, menu: [ {text: ‘Menu item 1’, onclick: function() { tinyMCE.activeEditor.execCommand(“myPopup”, false, { title: ‘Divider’, identifier: ‘divider’ })}}, {text: ‘Menu item 2’, onclick: function() {editor.insertContent(‘Menu item 2’);}} ] … Read more
You can stimulate click to Update post button like this.. Adding submit or update button to custom metabox? <script> jQuery(‘.metabox_submit’).click(function(e) { e.preventDefault(); jQuery(‘#publish’).click(); }); </script> <input type=”submit” class=”metabox_submit” value=”Submit” />
For this three possibilities: If you really want to do it on order place you would have to use the hook: woocommerce_new_order However I would recommend you use the hook: woocommerce_order_status_completed This would make sure that the order is finished when you send then information. To catch the information before billing you could always use: … Read more