Having a bit of trouble with this…
So in my theme I want to integrate this site into an existing site. therefore using the main site’s header on my blog page . here is the structure
website.com/blog/ <– the wp install
website.com/header2.php <– the location of the header file i want to use , its 1 directory up from the blog
I’ve tried adding this <?php include(‘../header2.php’);?>
It DOES indeed include the file but ALL the images in that header2.php file do not work. Its trying to pull the images from:
it SHOULD be pulling it from
I tried searching and couldn’t find a solution and I dont want to resort to iframing it if I dont have to.
- The topic ‘php include outside header file’ is closed to new replies.