How to remove the word "category" from my link

Posted in: Newspaper
Post count: 9

Hi,

for example in the demo and the category page for fashion is:

http://demo.tagdiv.com/newspaper/category/tagdiv-fashion/

How do I omit the word category in the link and show it as:

http://demo.tagdiv.com/newspaper/tagdiv-fashion/

Post count: 9544

the /category/ directory is managed in your WordPress settings; not by the theme.

in your WordPress settings you can change the /category/ name to something else, like /news/ but very difficult to remove the /category/ altogether — you can try a plugin, or look in Google for various options to try to do that.

See WordPress docs (codex) for help using basic WP functions:
https://codex.wordpress.org/Settings_Permalinks_Screen

———-

in our case we change it to something like /news/

http://enewschannels.com/news/business/

Good luck!

Post count: 9

Hi Chris,

thanks for your reply.

I found a way using Yoast SEO plugin.

In the plugin go to advanced/change URLs and Tick this:
Strip the category base (usually /category/) from the category URL.

Now my website is showing http://www.domain.com/fashion

Hope this help anyone else with the same issue.

Cheers

Post count: 9544

Yes, also be aware that this may break on some systems — as noted in the warnings for use of that in Yoast plugin.

SO, be aware that is not a “feature” per se, it’s a notable “HACK” which may break some things which look for normal permalink structure in WordPress.

This is why I did not suggest that. If you notice oddities with your permalinks this will be the cause of those issues. It broke several things when I tried to do this exact same thing, and was not a good solution for reliability and does not help SEO in any way. So, be “careful” with that solution 🙂

So, keep an eye on that, in other words! (But don’t panic; just letting you know it didn’t work for us.)

  • This reply was modified 11 years by simchris.
Post count: 36

I use the Yoast SEO plugin to strip “category” from the URL. On two occasions, a plugin update broke my categories. To resolve, I uncheck this setting, saved settings, re-check the setting, and then saved again.

Be sure to check a few posts and category pages after ever Yoast pluging update (and after any plugin update).

Post count: 171

Or use the FV Top Level Categories plugin.

Post count: 9544

I had issues with the FV Top Level plugin also, but that’s just me … I like to try to break stuff !!!! 😉

Post count: 12

Settings > Permalinks and write only dot “.” at the category box. Save then wordpress will change url as you like. You can also do it for tags.

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.