Hide certain category tag on blocks

Posted in: Newsmag
Post count: 59

I have one special category that i use just for posts i want to show in slides/grid on homepage. I have ability/setting to hide it inside posts, but not on blocks

screenshot

Before, i used plugin Simple Custom post order, to order categories and it worked fine. But then i had problem with this one called “Aktuelno”. And because i read that default order of primary categories is alphabetical i changed its name to -Aktuelno- and it was ok for some time.

Recently it showed up again at the top, i cant do anything to remove it except to manually choose primary category in every post.

Post count: 6535

Hi

The theme doesn’t have an option to hide the category tags only for one specific category. However you can use custom css to hide this tags from a specific block/grid. For big grid 1 you can use this css: http://screencast.com/t/F1UufMRH1W

.page-id-abc .td_block_big_grid .td-post-category{
display: none;
}

You need to replace the abc with your page id, such that this css to be applied only for that specific page. To get the page id please follow this link: http://screencast.com/t/sMkqc7hW1X

Hope this help.
Thanks!

Post count: 59

but i do want to show category tags on big grid. Only thing is that i dont want specific tag fromspecific category to be shown. I can disable specific category tag to be shown on posts, but not in blocks. That is what i need.

Post count: 6535

Hi

he theme doesn’t have an option to hide the category thag for a specific category but you can achieve that by adding a conditions in td_module.php file like here: http://screencast.com/t/cCEa9Vfnk

if (in_category('categury-tag/slug/id', $this->post->ID )){
return;
}

Just add the category tag/slg/id which you want to exclude in this functions, it should work fine: http://screencast.com/t/l37VRu5mU

Thanks!

Post count: 59

ok, this did hide category tag that i wanted, but instead of totally hiding it, can there be other (secondary) category tag listed? Same as we do it when pickin primary category in posts?

For example: if one post had three categories: SlideNews, Sport and Basketball, and i dont want to show “SlideNews” ever beside my titles on blocks, but i want Sport and Basketball instead of it

Post count: 6535

Hi

To achieve that you will need a different implementation for the function which generate the category tag for each post: http://screencast.com/t/gwhUcBfb9Y This task involve many customizations and I can’t provide a solution now so if you need this and you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you as we can’t offer customization services at the moment.

Thanks!

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