Support » Plugin: WPUpper Share Buttons » Remove option on page new post edit

  • Resolved ivanjst2

    (@ivanjst2)


    In page new post edit is showed option to if the editor desire don’t use the wpupper-share-buttons.

    I want remove this sidebar.

    It exist function to remove this sidebar?

Viewing 1 replies (of 1 total)
  • Solved – paste this code in function.php archive theme template:

    function hide_publishing_actions(){
    $my_post_type = ‘post’;
    global $post;
    if($post->post_type == $my_post_type){
    echo ‘
    <style type=”text/css”>
    #wpupper-share-buttons{
    display:none;
    }
    </style>
    ‘;
    }
    }
    add_action(‘admin_head-post.php’, ‘hide_publishing_actions’);
    add_action(‘admin_head-post-new.php’, ‘hide_publishing_actions’);

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.