Tagged: Codeblock
Hello,
Thanks for your theme, it’s really awesome.
I have a problem to delete the “codeblock” element from advanced editor, can you help me ? I don’t want ‘editor’ users have possibility to use.
I’ve tried to delete it by the shortcode ‘av_codeblock’ :
if ( ! is_admin() ) {
add_filter('avia_load_shortcodes', 'remove_block_code');
function remove_block_code() {
remove_shortcode('av_codeblock');
}
}
Don’t work :(
Can you help me pls ? Sorry for my english.
Hey Alexandre!
Try this out.
add_action( 'admin_print_styles', 'enfold_customization_admin', 10 );
function enfold_customization_admin() {
echo '<style type = "text/css">';
echo 'a[href="#avia_sc_codeblock"] { display: none; }';
echo '</style>';
}
You can echo out some CSS to hide it for anyone besides admin.
Regards,
Elliott
Thank you Elliott, it’s work. :)
Have a nice day !
Hi!
You’re welcome, glad we could help :)
Please let us know if you ever need any help in the future.
Regards,
Dake