document.ready(function() { if (window.location.href.indexOf('https://www.yoursite.com/portal/')) { //Hide the element. $('.banderole').hide(); } });