• Hi,
    I am trying to skin non-WordPress form pages of our site with our theme but I need to keep my current <title> tags? I end up with this test https://www.ltcinsurance.com/quote-root.php page that has code that looks like below with duplicate <html>,<head>, and <title> tags. Is there a way to just include <body> of the theme header, so I can keep my <title> tags and not end up with dups?

    <strong><html>
    <head>
    <title>Re: LTC Premiums</title></strong>
    
    <!DOCTYPE html>
    <!--[if lt IE 7]>
    <html class="ie ie6 lt
    e9 lte8 lte7″ lang=”en-US”>
    <![endif]–>
    <!–[if IE 7]>
    <html class=”ie ie7 lte9 lte8 lte7″ lang=”en-US”>
    <![endif]–>
    <!–[if IE 8]>
    <html class=”ie ie8 lte9 lte8″ lang=”en-US”>
    <![endif]–>
    <!–[if IE 9]>
    <html class=”ie ie9″ lang=”en-US”>
    <![endif]–>
    <!–[if gt IE 9]> <html lang=”en-US”> <![endif]–>
    <!–[if !IE]><!–>
    <strong><html lang=”en-US”></strong>
    <!–<![endif]–>
    <strong><head></strong>
    <meta charset=”UTF-8″ />
    <meta name=”viewport” content=”initial-scale=1.0,maximum-scale=3.0,width=device-width” />
    <strong><title>Page not found – LTC Insurance</title></strong>...

    I am using this below to include the header

    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>
    <?php get_header(); ?>
    	<div class="main">
    		<div class="content">
    this is where my stuff goes...
    
    		</div>
    			<?php get_sidebar(); ?>
    		<div class="clearer"><span></span></div>
    	</div>
    <?php get_footer(); ?>

    from this post

    </div>

    Thanks for the help
    – Matt

  • The topic ‘Including/Using Theme/template on non-wordpress pages’ is closed to new replies.