Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure if this is the best solution, but I included the following in my footer:

    <script>
    		function get_var(var_name){
    			var query = window.location.search.substring(1);
    			var vars = query.split("&");
    			for (var i=0;i<vars.length;i++) {
    				var pair = vars[i].split("=");
    				if(pair[0] == var_name){return pair[1];}
    			}
    			return(false);
    		}
    
    		var get_variable = get_var("pwb-brand");
    		if (get_variable !== '') {
    
    			document.getElementsByClassName("products clearfix products-1")[0].setAttribute("class", "products clearfix products-3");
    		}
    	</script>
    Plugin Contributor titodevera

    (@titodevera)

    Hello. Which page view (archive page, single product, page…) is? Can you give us a public link to this page? Are you using a shortcode?

    Thanks for using PWB 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘page view’ is closed to new replies.