Hi!
The same problem on 5 sites. All the users buttons have disappeared. No errors in logs.
Taniya
Hi all, I was able to fix the issue related to qtags by decreasing the priority associated with the admin_print_footer_scripts action to a value greater than the default value of 10.
Thank you for your help! The broblem has been solved!
Hello @plantprogrammer
So you did something like:
remove_action( 'admin_print_footer_scripts', '_wp_footer_scripts' );
add_action( 'admin_print_footer_scripts', '_wp_footer_scripts', 5 );
?
Hello @titaniyaworld
Could you please share your fix ?
Many thanks
Here is my way:
Before:
function add_buttons() {
if (wp_script_is('quicktags')){
?>
<script type="text/javascript">
QTags.addButton( 'color_blue', 'blue', '<span style="color: #2655ff;">', '</span>', '', 'blue', 3 );
</script>
<?php
}
}
add_action( 'admin_print_footer_scripts', 'function add_buttons' );
After:
function add_buttons() {
if (wp_script_is('quicktags')){
?>
<script type="text/javascript">
window.addEventListener('load', function(){
QTags.addButton( 'color_blue', 'blue', '<span style="color: #2655ff;">', '</span>', '', 'blue', 3 );
});
</script>
<?php
}
}
add_action( 'admin_print_footer_scripts', 'function add_buttons' );
Thanks but I do not understand how this code can add native button and why adding “blue” color?
Furthermore, these code unfortunately doesn’t solve my issue.
Thanks for trying to help.
Sébastien SERRE
This is the add blue button example. By analogy, you need to change the code of the buttons you have.
Sorry for my English.
Hello @sebastienserre
add_action( 'admin_print_footer_scripts', 'add_my_button', 11 );
Thank you, in fact, I’ve not read very well the title, what is missing are the native buttons.
I have the problem on Classic Editor but also with Beaver Builder & WP Bakery Page Builder in text element which are using the old editor.
I’ve opened my own thread: https://ww.wp.xz.cn/support/topic/some-icons-are-disappearing/
Thanks for your help
The add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' ) line example should have a priority with a value greater than 10 (larger value means lower priority).