Category description in widget

Home Forums Iconic One Pro Support Category description in widget

This topic contains 2 replies, has 2 voices, and was last updated by  beltoprent 6 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5423

    beltoprent
    Participant

    Hi! When I add category widget in the main sidebar, it also display category description in the code of page and also when when I hover over the name of category. How can I
    remove category description in category widget? Thanks

    #5427

    Hi, This widget is provided by WordPress and not by theme. To remove description: Go to Dashboard -> posts -> categories and click on categories to remove the description one by one.

    #5428

    beltoprent
    Participant

    Thanks! Found solution by adding the following code into functions.php file:

    add_filter(‘widget_categories_args’,’remove_cat_description_widget’);
    function remove_cat_description_widget($args) {
    $args[‘use_desc_for_title’] = 0;
    return $args;
    }

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.