I'm trying to add an external photo gallery to one of my pages. I have to do the two following things -
- add this in the head area <?php include_once("...../include.php"); ?>
- add this in the body area <div class="gallery" title="gal"></div>
I tried adding both of them to the template I want my gallery in but the php include tag was removed when I look at the source after loading the page.
How can I do this?
I did try, and I thought I was in the right folder, it was in data/_themes/magw204. The theme was one I downloaded so am I pretty sure I am looking in the right spot?
One other question, when i am entering this - <?php include_once("...../include.php"); ?> - what is the relative path to use? Is it from the template.php file or from ghEasy's root folder or something else??
Ok, so if it was in a theme that you downloaded, you may need to copy it from /data/_themes/magw204 to /themes/your_theme_name.
One other question, when i am entering this - <?php include_once("...../include.php"); ?> - what is the relative path to use?
To be certain of the path you could use the $dataDir variable of gpEasy. The following code would include a file in the root gpEasy directory (adjacent to the index.php file).
Find out more about our Provider Spotlight