forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 themes (visuals) => Topic started by: Hanna. on March 30, 2023, 05:12:30 pm

Title: How to call other .php files into template.html
Post by: Hanna. on March 30, 2023, 05:12:30 pm
I'm trying to add this:

Quote
<?php  include "./welcome.php";?>


into template.html but it won't display. I need to be able to include/import php files in the template to save myself each time I change the theme colors/layout.

Please advise.
Title: Re: How to call other .php files into template.html
Post by: ron4mac on March 30, 2023, 05:44:45 pm
You can not run PHP code from an .html file.

See here (https://coppermine-gallery.net/docs/curr/en/php-content.htm#php-content_header_footer) for adding custom PHP code.
Title: Re: How to call other .php files into template.html
Post by: Hanna. on March 30, 2023, 06:23:35 pm
You can close this topic. I was able to locate the plugin that you provided me a while back in regards to this. Thanks!
Title: Re: How to call other .php files into template.html
Post by: Hanna. on March 30, 2023, 06:23:54 pm
Link to thread (https://forum.coppermine-gallery.net/index.php/topic,79828.msg386797.html#msg386797)