Hi!
I want to hide the category title only on my frontpage of groweco.se. I´ve managed to get the custom made slider hidden if any other page than the frontpage is viewed, but i seem to have some problems when it comes to hiding an element that is built-in by Ecwid.
How do I hide the title? This is what I've got so far, only cart_text part is working:
PHP Code:
<script type="text/javascript">
var last_hash = '';
function poll_hash() {
if(last_hash !== document.location.hash) {
last_hash = document.location.hash;
add_cart_text(last_hash);
}
}
function add_cart_text(hash) {
var cart_text = document.getElementById('slides');
if (cart_text) {
if (hash.indexOf('mode=category,product') == -1) {
cart_text.style.display = 'none';
} else {
cart_text.style.display = '';
}
}
var cart_text2 = getElementsByClassName('ecwid-productBrowser-head');
if (cart_text2) {
if (hash.indexOf('mode=category,product') != 1) {
cart_text2.style.display = ''none;
} else {
cart_text2.style.display = '';
}
}
}
setInterval(poll_hash, 100);
</script>
Thank you for your help!