Show category on block9 and more

Posted in: Newspaper
Post count: 26

Hello over there,
I am using Newspaper 6 and very happy of the possibilities to set it up, but I have a few requests, if you can help me.
We use several block9 in the home page, the first one is an highlight of stories from different categories and the next 4 are block dedicated to a single category.
First, is it possible to show category in the first block but not in others ?
Secondly, even if I select ‘show category’ in the theme panel, it will show category in the main story but not in the side posts on the right, is it possible to show categories in all posts ?

We have chosen to have latest posts at the bottom of the page, is it possible to show category in that block (for the same reason, posts come from different category)
our website : http://www.mondafrique.info
block with different category stories : A la une
Thanks
Patrick

Post count: 22421

Hello Patrick,

I’m not sure i understand your request.
Blocks are made to display posts not categories, however, you can chose the category from which the posts are displayed from block settings: https://forum.tagdiv.com/block-settings-tutorial/
You need to get the category ID: http://screencast.com/t/vTzH6F9sUz9o and place it in the filter box: http://screencast.com/t/iptMt3HRlDi.
You can also filter categories by slug: http://screencast.com/t/nb3VQG0g
This way you can control which category gets to be displayed on every block.
If this is not what you mean, provide more details please.

Thank you!

Post count: 26

Sorry wrong explanation.
I understood how selecting posts and categories within a block, you can see the website to verify : http://www.mondafrique.info

Because in the first block, we have 5 posts from different category, I would liked to show on screen the name of the category for the user to know the post’s category.
I know that it is possible to select ‘show category’ from the theme panel but it is not good for me because :
1. in block1, category’s name will be seen only for the main post (on the left) but not on others (smaller on the right)
2. select that option ‘show category’ will show the category in every block1 and I don’t want that because the others block1, from the home page, are dedicated to one category only.

My 2 questions are :
1. is it possible to show category’s name on posts right sided
2. is it possible to show category’s name in a specific block1 and not others ?
hope it’s clear, thanks
Patrick

Post count: 22421

Hi Patrick,
The category tag has to be enabled on modules. Each module has it’s own enable button.

1) Enable the category tags on modules:
http://screencast.com/t/vuzc13XPnxK
result: http://screencast.com/t/LiZWwTWpCe

2) If you want to hide the category title on specific blocks there is no option from the theme panel to do that but there is a workaround. You can add an extra class to the row in which the block is placed :http://screencast.com/t/PrldZnw3 and then use this custom CSS to hide the category title on the blocks that have this class set to them:

.hide-category-title .td-post-category{
display:none;
}

result: http://screencast.com/t/hJj0mVAviFEW (removed tags from the middle block)

Thank you!

Post count: 26

great
thanks Bogdan, it worked fine
Have a nice day
Patrick

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