Title: Skinned Website
Last modified: August 18, 2016

---

# Skinned Website

 *  Resolved [Shar](https://wordpress.org/support/users/shar/)
 * (@shar)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/skinned-website/)
 * urls
    [http://www.distant-sea.net/adagio/index.php](http://www.distant-sea.net/adagio/index.php)
   [http://www.distant-sea.net/adagio/index2.php](http://www.distant-sea.net/adagio/index2.php)
   [http://www.distant-sea.net/adagio/cookiecheck.php](http://www.distant-sea.net/adagio/cookiecheck.php)*
   [http://www.distant-sea.net/adagio/nav/header4.php](http://www.distant-sea.net/adagio/nav/header4.php)
 * By adding the loop to my index page, I’ve integrated wordpress into my already
   skinned website. However, if you click on a pagination, comment or category link,
   you’ll see the following error information:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/distants/public_html/adagio/wordpress/index.php:2) in /home/distants/
   public_html/adagio/cookiecheck.php on line 14
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/distants/public_html/adagio/wordpress/index.php:2) in /home/distants/
   public_html/adagio/cookiecheck.php on line 15
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/distants/public_html/adagio/wordpress/index.php:2) in /home/distants/
   public_html/adagio/cookiecheck.php on line 16
 * I read the FAQ and I’ve done a lot of searching. There are no extra spaces in
   line 2 of index.php. These are the first two lines in that file:
 * <?php include(“/home/distants/public_html/adagio/cookiecheck.php”); ?>
    <?php
   include($headervar.$skin.$extension); ?>
 * The blogheader include is inside of each of my header#.php files.
 * I included the link to index2.php so you can see that my inclusion of the comment
   related script on index.php has nothing to do with the problem.
 * Thanks in advance for any help you can give!
 * *this isn’t a typo, header4 is the default.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Shar](https://wordpress.org/support/users/shar/)
 * (@shar)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/skinned-website/#post-424121)
 * I just realized that you can’t view the contents of cookiecheck.php! So here 
   it is:
 * <?
    $total_skins = 4; $default_skin = 4;
 *  if (isset($_REQUEST[‘newskin’])) {
    $newskin=(int)$_REQUEST[‘newskin’]; if ((
   $newskin<1) OR ($newskin>$total_skins) ) $newskin=$default_skin; } elseif (isset(
   $_REQUEST[‘skin’])) { $newskin=(int)$_REQUEST[‘skin’]; if ( ($newskin<1) OR (
   $newskin>$total_skins) ) $newskin=$default_skin; } else $newskin=$default_skin;
 *  $skin=$newskin;
    setcookie (‘skin’, “”, time() – 3600); setcookie(‘skin’,$newskin,
   time()+(86400*365),’/’); setcookie(‘skin’,$newskin,time()+(86400*365),’/’,’.distant-
   sea.net’); $skin=$newskin;
 *  $headervar = “/home/distants/public_html/adagio/nav/header”;
    $footervar = “/
   home/distants/public_html/adagio/nav/footer”; $extension = “.php”; ?>
 *  [rustifer](https://wordpress.org/support/users/rustifer/)
 * (@rustifer)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/skinned-website/#post-424122)
 * Actually, there is a line feed between the two lines.
    Try <?php include( the
   cookiecheck one ); include( the headervar one) ?>
 * Although it’s slightly odd that you’d be getting an error citing line 2, while
   the linefeed would be on line 1. I’m assuming that you’ve also checked the cookiecheck
   file for extra spaces and linefeeds, and the same with headervar.skin.extension?
 *  Thread Starter [Shar](https://wordpress.org/support/users/shar/)
 * (@shar)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/skinned-website/#post-424124)
 * Fixed the line feed, but that wasn’t the problem! I checked the cookiecheck file
   and this is the only php in any of the headers:
 * <?php $page = basename($_SERVER[‘QUERY_STRING’]);
    require(‘/home/distants/public_html/
   adagio/wordpress/wp-blog-header.php’); ?>
 *  Thread Starter [Shar](https://wordpress.org/support/users/shar/)
 * (@shar)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/skinned-website/#post-424624)
 * I noticed that there are some other people who had this question. Well, here 
   is the answer:
 * 1. Login to the dashboard, click options and make sure that the blog address 
   is set to: [http://www.yoursite.com/wordpress](http://www.yoursite.com/wordpress)
 * 2. Put the blogheader include into your header.php file
 * 3. Put the loop, any comment code you need and your side bar into your index.
   php file
 * 4. Copy the contents of index.php to wordpress/index.php
 * This worked perfectly for me. I’m not sure if it was necessary or not, but I 
   also created a theme that uses only the bare necessities.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Skinned Website’ is closed to new replies.

## Tags

 * [modify header](https://wordpress.org/support/topic-tag/modify-header/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Shar](https://wordpress.org/support/users/shar/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/skinned-website/#post-424624)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
