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:
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!
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
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.
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).
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.
