• bizready

    (@bizready)


    I use wordpress are my front end application, but do use additional pages for custom development. In my custom page I would like use same look and feel of wordpress template. The integration between custom pages and wordpress works fine…. in the sense, wordpresss functions work in the custom page pages.

    My simple custsom page:

    <?php get_header();?>
    ……
    <?php get_footer(); ?>

    View Source of the page:

    <!DOCTYPE html>
    <!–[if IE 7]>
    <html class=”ie ie7″ lang=”en-US”>
    <![endif]–>
    <!–[if IE 8]>
    <html class=”ie ie8″ lang=”en-US”>
    <![endif]–>
    <!–[if !(IE 7) | !(IE 8) ]><!–>
    <html lang=”en-US”>
    <!–<![endif]–>

    <body class=”error404 logged-in tc-fade-hover-links tc-l-sidebar tc-regular-menu” itemscope itemtype=”http://schema.org/WebPage”&gt;

    <div id=”tc-page-wrap” class=””>

    <header class=”tc-header clearfix row-fluid tc-second-menu-in-sn-before-when-mobile” role=”banner”>
    </header>

    <!– FOOTER –>
    <footer id=”footer” class=””>
    </footer>
    </div>
    </body>
    </html>

    My challenge is…..
    When I use get_header(); or get_footer(); in my custom pages, the page works but does not display theme contents such as <head> or <header>. Based on my understanding, it looks like ‘hooks’ are not fired to load content of the header and footer.

    My question is….
    What do I need to do to fire the hooks so that get_header(); displays like wordpress pages?

    Really appreciate any input that lead me to a answer.

Viewing 1 replies (of 1 total)
  • Thread Starter bizready

    (@bizready)

    any wordpress expert who can guide me here, please?

Viewing 1 replies (of 1 total)
  • The topic ‘How to load header and footer file in another custom php file/page’ is closed to new replies.