Support » Theme: Blaskan » [Theme: Blaskan] How to remove sidebar 'Meta' data widget categories?

Viewing 1 replies (of 1 total)
  • 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() {
    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!

Viewing 1 replies (of 1 total)
  • The topic ‘[Theme: Blaskan] How to remove sidebar 'Meta' data widget categories?’ is closed to new replies.