WordPress.org

Ready to get started?Download WordPress

Forums

Blaskan
[resolved] How to remove sidebar 'Meta' data widget categories? (2 posts)

  1. Stefan_K
    Member
    Posted 1 year ago #

    Hi,
    I'm trying to remove individual parts of the meta data (under 'Meta') in the sidebar, for example:
    - Site Admin
    - Log out
    - Entries RSS
    - Comments RSS
    - WordPress.org
    or even all of 'Meta'.
    I've been actively poking around with Firebug and in the functions.php and sidebar.php and I can remove all of the sidebar meta data in loop.php (in <footer>), but I can't for the life of me figure out where to find and remove 'Meta' or the categories listed underneath. Help! I'd really like to be able to do this without another plugin...
    Thanks!

    Stefan

    http://wordpress.org/extend/themes/blaskan/

  2. Stefan_K
    Member
    Posted 1 year ago #

    anybody?

    oh, I see a hand up in the back row... yes Abraham, what do you got?

    well, CSS edits aren't going to cut it because they only allow you to remove meta data globally, not selectively, because there's no differentiation targeting individual categories in the CSS.

    but...you can modify the functions.php in your child theme folder with:

    /* Unregister unused widgets */
    function unregister_default_wp_widgets() {
      unregister_widget('WP_Widget_Meta');
    }
    add_action('widgets_init', 'unregister_default_wp_widgets', 1);

    to remove meta data widgets you don't need/want. In the above example for instance 'WP_Widget_Meta'. This overrides the default-widgets.php in your wp-includes where the function resides.

    While this removes the entire 'Meta' category it is also possible to edit out individual
    <li> instances within the same category in wp-includes.

    Thank you Abraham!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic