• I am trying to use some php pages I created in a folder on my WP installations root in an iFrame in one of my WP pages to run a booking system. The page renders but only hangs around for about 3 seconds then WP hijacks the page and displays my homepage in it’s place? Is there a specific place where I should put the “Alien” directory? Would appreciate some input please. Gerard

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Keith

    (@keithdriscoll)

    Creating a custom plugin would be optimal, however, the quick and dirty method would be to throw them inside your theme folder.

    Thread Starter fatman007

    (@fatman007)

    Thanks Keith. If i throw it in my Theme Folder, any downside to it? I will study how to create a custom plugin in the morning though…

    Thread Starter fatman007

    (@fatman007)

    Just did that and the page works fine like that on it’s own but including the page in an iFrame still has the same effect. The content appears in the frame and then swaps around for my WP installations Home Page in the frame after a few seconds… Any ideas?

    Thread Starter fatman007

    (@fatman007)

    Ok, just figured it. I can’t put a folder in the themes directory and access files inside that, but I can put files directly in the themes directory and access them. Is there a way to use files from a directory I create somewhere in the structure that i can use to put my Alien files?

    Keith

    (@keithdriscoll)

    If what you just did can “get you by” for now, I would suggest reading up on theme and plugin development. It really isn’t as complicated as it might seem at first. You could sort of think as your theme folder (active theme) as the root of your site. You can create another subfolder within your active theme folder and include files from there within your theme’s functions.php.

    Keith

    (@keithdriscoll)

    If i throw it in my Theme Folder, any downside to it?

    When/if you update the theme your customizations will be overwritten. That is why we create “Child Themes”.

    https://codex.ww.wp.xz.cn/Child_Themes

    http://www.wpbeginner.com/beginners-guide/wordpress-child-theme-pros-cons/

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cannot access files in folder in WP installation root’ is closed to new replies.