Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #504649

    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.

    • This topic was modified 9 years, 2 months ago by Alexandre.
    #504828

    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

    #504852

    Thank you Elliott, it’s work. :)
    Have a nice day !

    #504913

    Hi!

    You’re welcome, glad we could help :)

    Please let us know if you ever need any help in the future.

    Regards,
    Dake

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove codeblock from editor’ is closed to new replies.