• does anyone know if by using server side includes, I can reuse wp header/footer on other items like forums, etc, i have like 5 different programs i use and although i can make each one have the same wp appearance it becomes a pain when having to update it all, since wp is not off of a standard web template does SSI still apply or can another method be used to reuse items, I have found plugins to bring these programs into the wp theme not very reliable so i thought it would be cool to have the ability to reuse items like header/footer

Viewing 4 replies - 1 through 4 (of 4 total)
  • You certainly can, yes.
    I would edit certainly the header file to remove everything un-needed though.

    The best method is to use PHP includes to embed PHP files and whatnot into pages on rest of your site (though these would also need to be PHP files).

    Just note that any WordPress-specific function first requires wp-blog-header.php is included in your file, and if a forum etc. is makes use of MySQL calls, there can be conflicts between the different db connections.

    Thread Starter ongakukaku

    (@ongakukaku)

    I tested it out on my local server and it works like magic, never needed to touch any wp-fuctions. The only thing is the styling for header, footer, images, etc would all come from the WP root (site root) vs the theme folder. What i would do is leave wp stylesheet alone then use another for the SSI

    the question: is this morally ok to refer to the WP root for the site layout vs the themes he he,
    or
    is it an unethical thing to do seeing that WP was meant to draw its theme from the theme directory don’t want to commit any wp deaily sin you know

    The old saying came to mind “if it works do it” :))

    Morally ok? Unethical? You cannot sin against WordPress, my son.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SSI, WP and stylesheet’ is closed to new replies.