How to hide specific categories + change look?

Posted in: Newspaper
Post count: 181

Hello,

I have a few categories that are achieved (old posts) and i don’t want them to appear within the sub-menus and ‘new post’ page.

For example, 1 category has all posts related to a specific topic that’s old and no longer talked about, so instead of deleting the posts i want to put them in a hidden category (so it’s still organised). When you go to the main category (that the sub-category is connected to) it shows up on the website as a sub-menu.

Also when you’re creating a new post, the achieved categories show up in the box ‘Categories’, making it hard to search for the correct category i want to put the new post in.

Is there a way to hide specific categories? Or do i have to delete them and move the posts to a category that i actively use?

Another thing i’d like to discuss is the way the menu categories look. At the moment when you click a main category, a list of sub-categories appear in a bar with the name of the category inside (blue strip). Is there anyway to change it to an image to make it look more appealing?

Thanks.
(If you want pictures, i can provide but not currently)

Post count: 3343

Hi,
You can exclude some suc-categories from mega menu changing the code like here: http://screencast.com/t/3RKjibbv

if($td_category->cat_ID != 12 and $td_category->cat_ID != 15) {
....
}

Can you show me a screenshot about that issue.
Thanks!

Post count: 3

Hello,

In the same case, i want to not display subcategory level -2

For example :
Big category
— Sub-cat-1
— Sub-Sub-cat-A
— Sub-Sub-cat-B
– Sub-cat-2
— Sub-Sub-cat-C
— Sub-Sub-cat-D
– Sub-cat-3

How to display only the sub category under the category choose for mega-menu ?

Than you…

Post count: 3343

Hi,
I’m not sure that is possible easily. Thanks for understanding!

Post count: 3

Hello,

I find a solution,

In td_block_mega_menu.php, ligne 126

Replace
$td_subcategories = get_categories(array(‘child_of’ => $category_id,)
By
$td_subcategories = get_categories(array(‘parent’ => $category_id,)

It’s works for me

Post count: 181

Thank you, i will check that out later 🙂

Post count: 3343

Hi,

@higherweb
I’m glad that you have manage it.

Thanks for the message!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.