Indexhibit

Login:

Created by:
Daniel Eatock &
Jeffery Vaska

Built with Indexhibit

Adding custom php-commands to the theme's index.php?

 

Indexhibit version: 2.0
Thread is not resolved.

erikkk
SWEDEN
1 year(s) ago
Permalink Post
  1. Hi again!
  2. I want to add an echo-command in the index.php-file for my current theme (ndxzsite/mytheme/index.php), but it does not seem to work, the <?php ?>-command seems to be ignored? Any ideas why this is happening to me?
  3. The code that I want to add in an footer:
  4. >© {{obj_name}} 2012 - <?php echo date'(Y' ?>. All rights reserved.
Vaska A
UNITED STATES
1 year(s) ago
Permalink Post

You don't use echo - you return your results at the end of the function.

erikkk
SWEDEN
1 year(s) ago
Permalink Post
Thank you for your time Vaska!
I found a solution to this by adding a function in ndxzsite/plugin.index.php and then inserting it to the (mytheme)/index.php with
I don't know if this was the easiest way, but it works.
erikkk
SWEDEN
1 year(s) ago
Permalink Post
  1. with <plugin:myfunction />
 

You need to be logged in to post.