Hide a category from the homepage

Posted in: Newspaper
Post count: 13

Hello,

In the theme panel’s category settings, there is a very useful feature: “HIDE CATEGORY ON POST AND ON CATEGORY PAGES” (Show or hide category on single post page and on category pages. Useful if you want to have hidden categories to sort things up).

I would like to use this functionality for the homepage of my site. Some categories are necessary for organizing content, but I don’t want them to be displayed on the homepage or publicly visible.

How can I achieve this? Is there a built-in way to hide specific categories from the homepage while still using them for sorting?

Thank you!

Post count: 27744

Hello,

The options from theme panel are for standard templates. You can edit the page with tagdiv Composer and in the tab layout you can hide the category -> https://i.imgur.com/cKtGgZ8.png

Thank you!

Post count: 13

Sorry, but you didn’t quite understand me, most likely I didn’t explain the problem in enough detail. I have 2 categories attached to my post, for example, news and politics. On the main page, I don’t want to display the news under the post, I want the politics category to be displayed.

Post count: 27744

Hello,

You can use the option to set a primary category for what you want to achieve. Please check this guide https://forum.tagdiv.com/primary-category/

Thank you!

Post count: 13

Thank you for the answer. Yes, I saw this guide, but the question is, is it possible to make some categories that are used for sorting, by default, not to be primary? In this case, primary will automatically be the necessary category

Post count: 27744

Hello,

The category displayed on the block is not related to the category set for filtering.
So, you can filter the block by category you want.

Thank you!

Post count: 13

Thank you for the answer. I understand this, but I need to select three categories in each post, and I want the block to show only one. The other two never fall under the auto-selection. For example, I have the categories ‘Politics’, ‘Announces’ and ‘News’ and I want the Announces and News not to be displayed in the block, but to write Politics

View post on imgur.com

Post count: 27744

Hi,

Unfortunately, you can only choose which category is displayed by using that option.

Thank you!

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