Forums

Best Practice for structure of customized theme and other PHP pages (2 posts)

  1. winegoddess
    Member
    Posted 3 years ago #

    Hello.

    I want to understand the best practice when integrating WordPress
    with an existing website that has other functionality besides the
    Wordpress blog.

    I have installed WordPress in a subdirectory of the root, called blog.
    I have been able to make it look like the website by modifying the header.php, sidebar.php, footer.php, etc

    >docroot > blog > wp-content > themes > customTheme >

    My question is in using the navigation now, to my other non WordPress pages that are located in docroot. How to best structure this so that I refer to the same header.php, footer.php without need for duplication?

    >docroot > other directories and PHP files

    I have been surfing this site and if I have missed something obvious, my apologies.

    Thanks!

    ~WG

  2. winegoddess
    Member
    Posted 3 years ago #

    anyone?

    Well, maybe to explain further, and hopefully get a bite on this thread, I have pages which are database driven, and use JQuery and AJAX. These are not the sort of pages that I want to have modified by the admin through the WordPress Page editor.

    since my index.php, header.php, footer,php are at:
    >docroot > blog > wp-content > themes > customTheme >

    and I want tose to be used by these other files located here:
    >docroot > other_directories

    how should I best include the header.php, sidebar.php, footer.php?

    Straight includes to the theme directory result in issues with calls to wordpress functions such as language_attributes().

    Any help is much appreciated - thanks!

    Winegoddess

Topic Closed

This topic has been closed to new replies.

About this Topic