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.
Then go to 'theme file editor' under 'appearance'. In functions.php file, use the code that I have linked below. Remember, we are not removing product category name from URL. we are removing product-category text or string from URL. Now If I go to store and then single product. There is no product text in URL. And if we click at any product category name, in URL there is no product-category text in URL.
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
⚡Channel: [ Ссылка ]
⚡Website: [ Ссылка ]
⚡FaceBook: [ Ссылка ]
⚡Twitter: [ Ссылка ]
⚡GitHub: [ Ссылка ]
#woocommerce #WordPress #WordPressTutorial #WordPressTraining #WordPressForBeginners #WebDevelopment #WordpressDeveloper #WebStylePress #permalink #urlrewriting
Ещё видео!