0
Welcome Guest! Login
0 items Join Now

SOLVED Conditional Statements in Index.php?

  • SOLVED Conditional Statements in Index.php?

    Posted 11 years 6 months ago
    • Hi,

      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?

      Thanks!
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: SOLVED Conditional Statements in Index.php?

    Posted 11 years 6 months ago
    • 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
    • Check my services at: Mihha-Vision
  • Re: SOLVED Conditional Statements in Index.php?

    Posted 11 years 6 months ago
    • Ok, not the end of the world. Rockettheme templates are still super awesome! Thanks for the reply!

Time to create page: 0.055 seconds