Disable Category Pages

Posted in: Newspaper
Post count: 1

I tried looking for an answer to this but had no luck.

Pretty much, I made custom pages for each category (example: mywebsite.com/music instead of mywebsite.com/category/music) but when you click on the category tag, it takes you to the category page.

My question is: Is there any way to either disable clicking the category tags without disabling the tags as a whole OR a way to replace the category tag link to take you to a specific page instead of a category page?

Thanks in advance!

Post count: 20688

Hi,

The links in the category tags will always link to the category pages. They can’t lead to custom URLs, unless maybe if the links to the category pages are redirected, but that will affect all the links not just the ones in the tags.

If you want to keep displaying them, but have them not lead anywhere, you could use some CSS, for example something like this should work

.td_module_wrap .td-post-category {
pointer-events: none;
}

Other than this, maybe if you redirect the category pages to a custom URL, but that will affect all links to them (not just the links in the tags)
https://wordpress.stackexchange.com/questions/8665/how-to-301-redirect-category-to-customname

Thanks

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