I have a series of conditional statements I want to use when displaying articles. (For example, if value is X, hide/show this div, if else, hide/show other div.)
My issue is not the PHP itself, my question is where can I place my code so that it doesn't get overridden when I update my Rockettheme template (or Joomla for that matter)?
I understand how to add custom css files which will not get overridden, is there a way to add custom PHP functions as well?
I am afraid there is no place except /features folder where you could put custom php code but doing that you would still need to make changes into the template files in order to load such php file so it would be overwritten with the template updates