Hey I had this same issue, I solved it by using the MetaMod extension available here: www.metamodpro.com/ When you add the module, go to the PHP section and use this "recipe": if ($option == "com_content" and ($view == "category"...
More