Display text only on very specific WordPress urls ($_SERVER[‘REQUEST_URI’])

[ad_1]

Hello!

I'm trying to display a block of text on a product category page. To cut a long story short the standard WordPress product_category functions aren't enough.

If the url if domain.com/c/vests/ is it possible to create an IF statement that incorporates the function $_SERVER['REQUEST_URI'] to check and only display information for that and only that exact URL.

For example:

Visitors who load the page domain.com/c/vests/ see a text block.

Visitors to domain.com/c/vests/?color=red etc DO NOT see the block.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer