removing developer notices (#43024)
removing two developer notices and adjusting the length of a long post title.
This commit is contained in:
parent
3978be9fdd
commit
10f6109982
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
post_title: Coding standards for the code snippets within the WooCommerce documentation
|
||||
post_title: Coding standards
|
||||
---
|
||||
|
||||
## Position of hooks
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
|
||||
---
|
||||
post_title: Removing /product/ , /product-category/ , or /shop/ from the URLs
|
||||
post_title: Removing /product/ , /product-category/ , or /shop/ from URLs
|
||||
---
|
||||
|
||||
**Note:** This is a **Developer level** doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woo.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](https://woo.com/support-policy/).
|
||||
|
||||
## [In sum](https://github.com/woocommerce/woocommerce/blob/trunk/docs/quality-and-best-practices/removing-product-product-category-or-shop-from-the-urls.md#section-1)
|
||||
|
||||
Removing `/product/`, `/product-category/`, or `/shop/` from the URLs is not advisable due to the way WordPress resolves its URLs. It uses the `product-category` (or any other text for that matter) base of a URL to detect that it is a URL leading to a product category. There are SEO plugins that allow you to remove this base, but that can lead to a number of problems with performance and duplicate URLs.
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
post_title: Conditional tags
|
||||
---
|
||||
|
||||
**Note:** This is a **Developer level** doc. If you are unfamiliar with code/tags and resolving potential conflicts, select a [WooExpert or Developer](https://woo.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](https://woo.com/support-policy/).
|
||||
|
||||
## What are “conditional tags”?
|
||||
|
||||
The conditional tags of WooCommerce and WordPress can be used in your template files to change what content is displayed based on what *conditions* the page matches. For example, you may want to display a snippet of text above the shop page. With the `is_shop()` conditional tag, you can.
|
||||
|
|
Loading…
Reference in New Issue