apply styling only to a specific url

Why don’t you add a class to body via functions if you are on that url, so you can use that class on css, like so: function add_class_to_body($classes) { if(is_page(‘events’)){ $classes[] = ‘page-events’; return $classes; } } add_filter(‘body_class’,’add_class_to_body’); Then you are able to target through .page-events div{ background-color: red; }

help me remove this additional parameter in url

The issue is caused by woocommerce. Woocommerce has a setting called Geolocate (with page caching support) which adds this parameter to every your url. The said option can be found in your dashboard at: Woocommerce → Settings → General → Default Customer Location Selecting any option apart from Geolocate (with page caching support) should resolve … Read more

How to generate external url in WordPress

@Sam is close, but I think you need to do this: $url=”http://www.example.com”; Without the protocol in front, you get the wrong result. Change to $url=”https://www.example.com”; if you need an SSL link.

404 error on cyrillic url

add Check if parameters exist in your web.config globalization tag <globalization requestEncoding=”utf-8″ responseEncoding=”utf-8″ responseHeaderEncoding=”utf-8″ fileEncoding=”utf-8″ resourceProviderFactoryType=”” enableBestFitResponseEncoding=”true”/>

How to remove slug from url (custom post type)

Whenever you register_post_type(), one of the args is rewrite where you can reset the URL to something else. Maybe you can play with this — try leaving it blank? Pro tip: You will have to reset permalinks after you do this.