Title: Validating Integrated WP within design
Last modified: August 18, 2016

---

# Validating Integrated WP within design

 *  Resolved [kannued](https://wordpress.org/support/users/kannued/)
 * (@kannued)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/)
 * I have successfully integrated WP within my design. The blog works. But when 
   I go to validate it at w3, the validator has problems with the WP’s doctype inside
   the design.
 * DocTypes are usually at the beginning of the page. That validates fine. But then
   where I have included the WP, it has a problem with its DocType that appears 
   in the middle of the file. Unfortunately, I can’t give you a link because it 
   is considered Google Juicing. So I don’t know how this can be solved if a person
   can’t see the problem.
 * Gayle

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/validating-integrated-wp-within-design/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/validating-integrated-wp-within-design/page/2/?output_format=md)

 *  [Ryan Fitzer](https://wordpress.org/support/users/ryanfitzer/)
 * (@ryanfitzer)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435088)
 * Yes, you can provide a link.
 *  [splanters](https://wordpress.org/support/users/splanters/)
 * (@splanters)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435089)
 * Google juicing? I’m kinda new around here, but I think if you’re posting the 
   link for other’s to see – so they can help, I don’t see the problem with it… 
   don’t think anyone can answer your question unless you post the link.
 * Congrats on trying to get it to validate – now let’s see your stellar site, I
   bet it rocks
 *  Thread Starter [kannued](https://wordpress.org/support/users/kannued/)
 * (@kannued)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435090)
 * [http://www.kiplingcitizen.com/temp-strict-integrate.html](http://www.kiplingcitizen.com/temp-strict-integrate.html)
 * [http://www.kiplingcitizen.com/temp.html](http://www.kiplingcitizen.com/temp.html)
 *  [Ryan Fitzer](https://wordpress.org/support/users/ryanfitzer/)
 * (@ryanfitzer)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435092)
 * Your defining the doctype twice. This is the problem. This is giving you duplicates
   of the head and body tags. You need to integrate WP in without all of the duplication.
 *  Thread Starter [kannued](https://wordpress.org/support/users/kannued/)
 * (@kannued)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435098)
 * So then I have to go into the header.php in the wp-content of my theme, and removed
   the DocType, head and body?
 * What about style type and all the link rel within the head? Then I have to transfer
   that to my main design?
 *  [Ryan Fitzer](https://wordpress.org/support/users/ryanfitzer/)
 * (@ryanfitzer)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435117)
 * Quickly thinking about it, what you would need to do is take all of the contents
   of header.php and integrate them into the main head elament of your site, get
   rid of the call to the header.php in all of the templates. Then get rid of the
   duplicate body tags.
 *  Thread Starter [kannued](https://wordpress.org/support/users/kannued/)
 * (@kannued)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435180)
 * I tried pulling the code into the main design. But my paths are now all mixed
   up. The problem is because the paths are coded not in html, but dependent on 
   php files. And I am still waiting for my Ullman’s PHP book.
 * <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’);?
   >” />
    <style type=”text/css” media=”screen”> [@import](https://wordpress.org/support/users/import/)
   url( <?php bloginfo(‘stylesheet_url’); ?> ); </style>
 *  <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘
   siteurl’); ?>/print.css” />
    <link rel=”alternate” type=”application/rss+xml”
   title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” /> <link rel=”alternate”
   type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” /> <link
   rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘
   atom_url’); ?>” />
 *  <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘
   type=monthly&format=link’); ?> <?php //comments_popup_script(); // off by default?
   > <?php wp_head(); ?>
 *  Thread Starter [kannued](https://wordpress.org/support/users/kannued/)
 * (@kannued)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435181)
 * These links are moving down to my root directory. I don’t know how to begin to
   recode for a root directory in php.
 *  [Ryan Fitzer](https://wordpress.org/support/users/ryanfitzer/)
 * (@ryanfitzer)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435182)
 * Well, my only suggestion would be to use an `<iframe>` until the book comes. 
   Although, I am halfway through this book and I don’t think it will help on this
   problem. Your trying to push a square peg (WP) into a round hole (your existing
   site). It would be a lot easier to just alter a theme to have the look of your
   current site. Good luck.
 *  [tsguitar](https://wordpress.org/support/users/tsguitar/)
 * (@tsguitar)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435183)
 * You could just put this at the top of your main page:
    `<?php require('pathtoyourwordpressinstall/
   wp-config.php'); ?>`
 * You can use WordPress functions on any page as long as the page knows where to
   find that config file. So you can build your own static page and pull content
   from your WP database to display on that page. This means that you don’t have
   to worry about WP writing headers for you. You can just use WP functions to display
   content you want. This might help:
    [http://wordpress.org/support/topic/83086?replies=2](http://wordpress.org/support/topic/83086?replies=2)
 *  Thread Starter [kannued](https://wordpress.org/support/users/kannued/)
 * (@kannued)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435195)
 * Ryan,
 * I couldn’t find a three column theme that just had images in its left and right
   columns. All three columns were filled with code that I needed in the centre 
   column, or in the footer.
 * I tried the iframe which works but confines the grey background only to the center
   piece.
 * tsguitar,
    my wp-config.php is in my root directory. when I call <?php require(‘
   wp-config.php’); ?> in the center column, nothing appears.
 * [http://www.kiplingcitizen.com/temp-require.html](http://www.kiplingcitizen.com/temp-require.html)
 * When I put it at the top of the page, nothing appears.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435199)
 * Because tsguitar gave you the wrong code 🙂
    To be able to use any WP function
   in another (non-WP) file, you need to add this: `<?php require('./path-to-your-
   blog/wp-blog-header.php'); ?>` at the top of that file, before anything else!
 *  [tsguitar](https://wordpress.org/support/users/tsguitar/)
 * (@tsguitar)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435225)
 * moshu: I’ve been able to get it working with wp-config… Huh… I must be completely
   mistaken. Well that means I need to go around to a few posts and fix my mistake!
   Glad we got it working, though.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435226)
 * Yup, HAS to be wp-blog-header.php – depending on host, the other can throw some
   TRULY AMAZING results! Been there done that…. wasn’t pretty.
 *  Thread Starter [kannued](https://wordpress.org/support/users/kannued/)
 * (@kannued)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/#post-435233)
 * The wp-blog-header.php is in my root directory. [http://www.kiplingcitizen.com/temp.html](http://www.kiplingcitizen.com/temp.html)
 * I have tried many variations. Either I get nothing, in the center column with
   my required code missing too.
 * Or I get these two faults.
    Warning: require(./townofkipling.com/wp-blog-header.
   php) [function.require]: failed to open stream: No such file or directory in /
   u/k/kcit0806/www.kiplingcitizen.com/temp.html on line 63
 * Fatal error: require() [function.require]: Failed opening required ‘./townofkipling.
   com/wp-blog-header.php’ (include_path=’.:’) in /u/k/kcit0806/www.kiplingcitizen.
   com/temp.html on line 63
 * I have tried the whole path using the absolute path (without the dot) and using
   the relative path. Then I get nothing in the center column nor in that section
   of view source.
    ?php require(‘/u/k/kcit0806/www.kiplingcitizen.com/wp-blog-header.
   php’); ?>

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/topic/validating-integrated-wp-within-design/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/validating-integrated-wp-within-design/page/2/?output_format=md)

The topic ‘Validating Integrated WP within design’ is closed to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 28 replies
 * 7 participants
 * Last reply from: [Ryan Fitzer](https://wordpress.org/support/users/ryanfitzer/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/validating-integrated-wp-within-design/page/2/#post-435284)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
