Title: Editing admin bar
Last modified: September 24, 2023

---

# Editing admin bar

 *  [jtoney7852](https://wordpress.org/support/users/jtoney7852/)
 * (@jtoney7852)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/editing-admin-bar/)
 * I’ve been using a piece of code in functions.php of my theme but it keeps disappearing:
 *     ```wp-block-code
       function remove_comments_column( $columns ) {
       unset($columns['comments']);
       unset($columns['tags']);
       return $columns;
       }
   
       function remove_column_init() {
       add_filter( 'manage_posts_columns' , 'remove_comments_column' );
   
       }
       add_action( 'admin_init' , 'remove_column_init' );
       ```
   
 * I have one plugin, yoast seo which adds an element to the admin that I can’t 
   seem to remove. I thought this was achieved from inside the plugin but it doesn’t
   go away.
 * I will save this and come back to find it has been deleted. What is happening?

Viewing 1 replies (of 1 total)

 *  Thread Starter [jtoney7852](https://wordpress.org/support/users/jtoney7852/)
 * (@jtoney7852)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/editing-admin-bar/#post-17077452)
 * I found its directly tied to updating the theme. I need to find a solution for
   that.

Viewing 1 replies (of 1 total)

The topic ‘Editing admin bar’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 3 participants
 * Last reply from: [jtoney7852](https://wordpress.org/support/users/jtoney7852/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/editing-admin-bar/#post-17077452)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
