Remove Product Category & Product from URL in WordPress | Custom Permalinks for WooCommerce

preview_player
Показать описание
Remove product category from URL in wordpress. Remove product-category base in woocommerce or change product category url in woocommerce. In woocommerce remove parent category from url or how to apply custom permalinks for woocommerce. From your wordpress site if you go to store, and click at any product, in URL we get this text or string named as 'product' and if you click a product category, in URL we get product-category before product name. URL should be unique. These identifiers are there in URL to avoid any permalink conflicts. But if your client requires you to remove product and product-category from URLs, he probably knows what is he doing. He is not worried about URLs conflicts. In that case you can go ahead and remove product and product-category from URLs.

To do that, from wordpress dashboard, go to 'Permalinks' from 'Settings'. Here I should mention that category base is post categories base. And product category base is category base for the product categories. Instead of removing these you can also change these by entering alternative
text of your choice there. Below under 'product permalinks' you can customize single product URLs. You can choose shop base, shop base with category or custom base in single product urls.

But we are not changing these we are removing 'product base' and 'product category base' from URLs. To do that under optional in 'product category base' type period and save changes.

Get the code from following link.
*Code*

Also if you don't want to use custom code, there are some SEO plugins and woocommerce customization plugins that allow you to remove product base, tag base, product category base and such from urls.

Now there are many other permalink and URL related tips for wordpress that you may be looking for. These may also help you tremendously. So check these out as well.

- Remove Category and Tag Base from WordPress | WordPress URL Rewriting Tutorial

- How to Hide WooCommerce Product | WooCommerce Tutorial | Shop Inventory Management in WordPress

- Remove Custom Post Type (CPT) Name or Words from URL in WordPress | WordPress Customization

- WordPress Tutorials

- WordPress Plugins

If you are new to the channel, subscribe to learn more about web development, web application development, editing wordpress source code, how to create a website using wordpress, developing landing page in wordpress, working with child theme wordpress, custom wordpress theme development, wordpress plugin development, how to build a website with wordpress, create website with wordpress and related web development areas.

We received following questions:
How do I remove a category from a Permalink?
How do I remove a category from a product page in WooCommerce?
How do I change product category URL in WooCommerce?
How do I remove a product from my URL?
How do I remove unwanted URLs in Wordpress?
So
We have covered those questions and also following topics in this video:
Remove product from url in wordpress
Remove product-category from url in wordpress
Remove product category from url
Remove product from url in woocommerce
Remove product-category from url in woocommerce
Remove product-category and product from URL in wordpress
Remove product base from url in wordpress
Remove product category base from url in wordpress
Remove words from wordpress urls
Customize wordpress permalinks
How to remove product category in woocommerce
How to remove category from url in wordpress
How to create custom permalinks in wordpress

Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

#woocommerce #WordPress #WordPressTutorial #WordPressTraining #WordPressForBeginners #WebDevelopment #WordpressDeveloper #WebStylePress #permalink #urlrewriting
Рекомендации по теме
Комментарии
Автор

Thank you! Thank you so much! Spent too long trying to figure it out and would probably not have figured it out without your video. Thank you :)

mett
Автор

hello. i just do it same like you. but when kadence theme updated. then the code removed. it may cause broken links. what should we do that dont remove the code with updation.
thanks.

engr.salmankhan
Автор

I applied the code in theme in child theme as well but not working The URL is as it is.

harshaldave
Автор

The product-category slug at my product categories is removed, worked! That’s what I’ve been looking for, thanks!🙏🏼
Edit: does it affect SEO?

Nebelung
Автор

Hello, it works only for the 1st category and the 1st subcategory. After that, if I have 2nd and 3rd subcategory I have 404 error. Can fix this?

dimitramavroeidis
Автор

hello i need write accent in my slug permalinks in whordpress, but wordpress block it, with this plugin or with you solution is its possible to do it please ? thanks yann

delacleautournevis
Автор

Thanks for the video, it helped me a lot!!!
And to remove or hide the product-tag from the url?
For example, I made a page to show only products with the tag "for the summer", but I didn't want the "product-tag" to appear in the url, how do I remove or hide it from the url? Could you tell me, please?
Thank you very much and congratulations again for the video

ThiagoF.Pereira
Автор

I have to re-add the code every time I update the theme. Is there a permanent solution?

FaithBiete
Автор

but when i search product with product slug its working

UmwMedia
Автор

Hello, it would be great if you activate the subtitles function on YouTube, you would help the Hispanic community

wescalona