December 21, 20169 yr Hi, I am trying to find the root path for Heart Internet. At the moment when I login to the FTP it starts with the public_html folder. I have tried: /home/domainname/public_html/foldername/includes/header.php /domainname/public_html/foldername/includes/header.php /domainname.com/public_html/foldername/includes/header.php /home/domainname.com/public_html/foldername/includes/header.php But none of them seem to work. Any ideas?
December 21, 20169 yr Author I'm obviously very much a novice when it comes to web development, but trying to learn. I'm trying to follow this guys instructions to create templates for the header and footer:
December 22, 20169 yr Morning, I just checked two clients on Heart and both use /home/sites/theirdomain.com/public_html Hope that helps. Edit: Example Includes <?php $root_path = "/home/sites/theirdomain.com/public_html"; include($root_path . "/foldername/footer.php"); ?> Edited December 22, 20169 yr by BrowserBugs
December 30, 20169 yr Author Thanks for the tip BrowserBugs. I actually ended up using this code instead: <?php include('includes/header.php'); ?> which seems a lot simpler. It seems to work fine in a desktop browser. However when I try it on my mobile those links are non responsive. Any ideas why this might be the case. Link included below: http://www.professionalwebdesigndirectory.com/urbanjump/index.php
December 31, 20169 yr Author OMG, I've figured it out and it was something so simple and obvious. Surprising how you can see things with a good night sleep. Sorry for wasting your time BrowserBugs
Create an account or sign in to comment