Hello,
is there any way to change the internal links which link to category pages?
I’ll try to describe my problem with an example:
I have a category “training”. The URL of this category is domain.com/category/training/. This is the default WP category page.
I have also created a page called “training”. The URL of this page is domain.com/training/. This is my self created page, which has the same purpose as a category page. Here you can find all posts that get the category “training”.
So far so good.
I would like to keep both pages, as both have advantages and disadvantages.
The domain.com/category/training/ is much simpler and if I want to send someone an overview of all training posts, I send this URL.
The domain.com/training/ page contains more text and I send it to people who also need the text.
The page that is important for Google is the domain.com/training/ and NOT the domain.com/category/training/.
The problem: Internally very often links to the /category/training/. For example via the breadcrumbs[1] or via the tags on the thumbnails[2].
I could of course set up a 301 redirect from domain.com/category/training/ to domain.com/training/.
I could also just remove the category slug. But I don’t want to do that either.
Neither option is an option for me though, as I want to keep the /category/training/.
[1] https://nimb.ws/yRHv4w
[2] https://nimb.ws/Wp4Eme
I hope you understand what I mean and would be happy about a solution.
Hello,
Unfortunately, there is no option to change internal links for breadcrumb and category on the blocks.
Maybe you can achieve that if you redirect them.
Also, is not indicate to have the same name slugs for some pages and categories on a site https://wordpress.stackexchange.com/questions/32561/using-same-slug-name-for-a-page-and-category
Thank you!
Hello Anamaria,
Too bad. Is there no option? Can I solve this vll. with the child theme?
I already said that a redirect is not an option for me.
I would be interested to know why you think it’s not a good idea to name a page and a category the same. The URL doesn’t matter to Google. What do you think?
My last option would be to hide the tags on the thumbnails. And integrate the breadcrumbs myself and not use the tagDiv function. But I really wanted to work around that.
Hello Anamaria,
why do you say that this does not work.
I happened to find out that you guys even offer that by default.
I use cloud templates.
You can just specify a custom link here. That would solve my problem for the posts.
>> https://nimb.ws/2s30Jv
However, this feature does not work for me.
The link is not taken over. Where is the error?
Hi Patrick93,
The options from the Breadcrumbs elements are working correctly for me and it should work for you too, just make sure that the link is set correctly, in my case https://i.imgur.com/EUbvFpV.png -> https://i.imgur.com/oK76g7j.jpg -> https://i.imgur.com/SlfrNX3.png the link will be apply on all Breadcrumbs that have set that single post cloud template.
Now if you want to keep those and you do not need theme to be linked to something, then you can remove the click from them too.
For thumbnails you can remove the link using this css:
.td-post-category {
pointer-events: none!important;
}
Just set this code in the theme panel> custom code > custom css.
I hope this will help you!
Thank you!
