Remove html tag by id from pagination pages (Woo)
-
Hello. I would appreciate your help. The search for solutions on stackoverflow did not yield results.
I use a combination of WordPress + Woocommerce.
Is there a way to remove a block of text by id from only pagination pages (/?product-page=1)?
Description problem:
On the post page in the content part there are:
- Shortcode [products limit=”6″ pagination=”true”], which displays products broken down into paginated pages.
- A block of text in <div id=»description-art»></div>.
For example,
Here a block of text is displayed – https://site.ru/mypost/
here block is not displayed https://site.ru/mypost/?product-page=1
And here https://site.ru/mypost/?product-page=2 is not displayed
and so on.
The problem is relevant for many who use pagination and text, which on the one hand informs visitors. On the other hand, it helps the search engine rank the site better.
Solving the problem will help you avoid duplicating the same
content on all pagination pages. Especially if there are a lot of them.
- The topic ‘Remove html tag by id from pagination pages (Woo)’ is closed to new replies.