How to remove the sub-category "all" in a block?

Posted in: Newspaper
Post count: 4

On my home page (echosurf.fr) I have a block in red named “CATEGORIES” with sub-categories. But I don’t want to have the sub-category “all” (in my website it’s the sub-category named “Tout”). I managed to find how to remove it in td-block.php by removing this:

if (empty($sub_cat_ajax)) {
     $buffy .= '<li><a>block_uid . '" id="sub-cat-' . $this->block_uid . '-' . $category_id . '" data-cat_id="' . $category_id . '"data-td_block_id="' . $this->block_uid . '" href="' . get_category_link($category_id) . '">' . __td('All') . '</a></li>';
}

but the posts that they are in “all” keep staying…

When I load my home page, I want to have this block “CATEGORIES” showing the sub-category “competition”.

Can you help me?

  • This topic was modified 12 years by Marius.
Post count: 780

Hello,

unfortunately it cannot be easily done. We may add this in a future update if more users request it.

Sorry for the inconvenience,
Radu from tagDiv

Post count: 16

Please add a function to disable sub-categories.

Post count: 60

Love this idea

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