hide 1 categories from widget popular

Posted in: Newspaper
Post count: 53

There is a way to hide 1 categories from the popular categories widget?
pls let me know

Post count: 20688

Hi,

You could edit the block and modify it like this
https://www.screencast.com/t/47gmF2DEM
Use the category IDs you want to exclude.

Or you could hide them with CSS, with a code. Example down below
https://www.screencast.com/t/DII02arD
https://www.screencast.com/t/Ez7D0H8iK

.td_block_popular_categories a[href*="travel"]{
display: none;
}

Thanks

Post count: 48

It worked here in 2024 🙂

My example:

/wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_popular_categories.php

$cat_args = array(
‘show_count’ => true,
‘orderby’ => ‘count’,
‘hide_empty’ => false,
‘order’ => ‘DESC’,
‘number’ => $limit,
‘exclude’ => ‘4, 4200,’ . get_cat_ID(TD_FEATURED_CAT)
);

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.