So an 80% complete website has been dropped on me which is using Magento and I have no experience or knowledge in Magento, I'm also a Junior Developer so please bare with.
I am looking to target the a product category page to create an if statement to add some inline css.
I am having no problem targeting pages created in the pages section of within the admin panel but cannot find the ID's for any product related pages.
I have found IDs for entire categories but not specific product based pages.
So far this has helped me to target cms based pages:
I have also attempted the follwing which taregts the entire cateogry and its products as apposed to just targeting the overall product category page..
<?php $category = Mage::getModel('catalog/layer')->getCurrentCategory();?>
<?php if($category->getId()==24): ?>
<style>
@media only screen and (min-width : 1824px) {footer.footer { position: absolute;}}
</style>
<?php endif; ?>
any help would be or pointing in the right direction would be a huge help,
thanks
Aucun commentaire:
Enregistrer un commentaire