I have an element in header.phtml that shows in every page but I want to hide it in specific pages like categories and products.
<ul id=tempMenu>
<li>...</li>
</ul>
and the php code
<?php if(!Mage::registry('current_category')):?>
<script>
document.ready(function() {
document.getElementById('tempMenu').style.display = 'none';
});
</script>
<?php endif; ?>
I'm really new to magento so if anyone can help me I'd appreciate it.