The code below is for a query string named "theyear". It adds the class "customHide" if the query string contains "2019". If not, it adds the class "customHideTwo". For example, if your site URL contains this query string: https://www.yoursite.com?theyear=2019 Add the...
How to add a CSS class based on a query string in WordPress
read more