Create Menu, Filtered by Content Type

Posted in: Newspaper
Post count: 27744

Hello,

I hid the author box from single Letters to the Editor, so please check now.
I don’t see the letters template. Can you please let me know where is?

Thank you!

Post count: 170

Here is the where the CPT is: https://app.screencast.com/NLHM6fLZptHIp

Here is the CPT called Letters: https://app.screencast.com/neD21ETQ44oXw

This is where I use it: https://app.screencast.com/HdYs0IqumSaTg

I would like this template to use that Letters CPT: https://app.screencast.com/yKrwrem2fd3eO

Can you capture a video of how this is done so that I can do it for the other categories that will behave similarly?

Post count: 27744

Hello,

There are differences between templates. A CPT is like a post; then, you need to add content using an editor like Gutenberg. So, you can not use the category template for a CPT, only for taxonomies, but you need to import it to the cpts/taxonomies section of the cloud template.

Thank you!

Post count: 170

How did you remove the Author block? I’d like to know so I can do it in the future. Is there a way to hide it by default on all Letters to the Editor?

Post count: 27744

Hi,

I added a custom code here -> https://i.imgur.com/yzSfQWo.png for this specific template.

Thank you!

Post count: 170
Post count: 27744

Hi,

Because there are different templates, that box comes from a plugin not from the theme, I set the code for all templates.

Thank you!

Post count: 170

I need the box there for every post type except one template. I don’t want to remove it for most articles.

Post count: 27744

Hi,

And for what template do you want, don’t show the author box. You need to add the post id there as it was before.

Thank you!

Post count: 170

The “Letters Category template” is the one that I don’t want the Author box to show. In the meantime, can you restore the author box as it was? I don’t know what you did to remove it everywhere, and I want to be in place for all of the posts that don’t use the Letters Category template.

Post count: 27744

Hello,

Unfortunately, this can not be done. I can hide only a single template, not a category template.

Thank you!

Post count: 170

Hi Anamaria,
For some reason, when clicking on the images in an article, they are not rendering properly in the enlarged mode. See here: https://libertylens.news/articles/elections/2024/10/26/ghosts-in-the-machine-patterns-in-historical-data-call-integrity-of-prior-elections-into-question/

Please advise. Thanks!
Ken

Post count: 170

Also, on the Single Post template (Desktop), I’d like to remove the category navigation at the top. I’m concerned that I’ll accidentally remove it from the Home page main navigation. Thanks.

Post count: 27744

Hello,

Is this post a draft > https://libertylens.news/articles/constitution/2024/10/19/why-im-suing-lancaster-county-officials/, if yes, I can not see it.
Also, you can delete the category in the single post template with right-click, edit the template and delete the element.

Thank you!

Post count: 170

No, the post is published. I just confirmed that it is visible. Here is a screenshot with the menu that I’m trying to remove from the single post template.

https://drive.google.com/file/d/1qnIV65wgPVVKfpUBe1YVR-3UAu5DDhRb/view?usp=sharing

Post count: 27744

Hi,

This is your menu created in the Appearances -> menus. You can use another header template for a single post template and set the other menu -> https://forum.tagdiv.com/topic/different-logo-in-categorypage/

Thank you!

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