Hide css class/button on sites.

Hide css class/button on sites.

How to hide or show class

   if(window.location.pathname == "/my_url_site/site" || window.location.pathname == "/category/poduct")
		document.getElementById("myButtonClass").style.visibility = "visible"; 

in CSS it is defined in that way:

	background: blue; 
	visibility: hidden;

In html code you should declare:

<div class="myButtonClass"> text or something else.. </div>

Dodaj komentarz

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *

This site uses Akismet to reduce spam. Learn how your comment data is processed.