24 | Posts |
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?
24 | Posts |
2K | Posts |
313K | Downloads |
16 | Themes |
18 | Plugins |
24 | Posts |
Hi Josh
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??
2K | Posts |
313K | Downloads |
16 | Themes |
18 | Plugins |
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).
<?php
global $dataDir
include_once($dataDir.'/include.php');
?>
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More News
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using