Theme only loading header.php
-
I am making an offline site of a currently live site so that I may add things to it and make changes and make sure that they don’t mess everything up. I have installed wordpress on the local server, then imported the .sql files from the live site in to the offline one. If it makes a diffrence the live site is on version 3.4.2 if that does any things also here is the link to it :
LinkThen I upload the theme to the site. When I check the site its all blank. I have no-plugins so thats not the issue, then I switched to the twenty elven theme and it worked just fine.
For some reason, the theme that works fine on the live site does not work on the offline site.
When I look at the source code on the blank page it turns out that only loads part of the header.php and on top of that it doesn’t even load the entire thing. So my logical explanation is that something is wrong with the header.php
Also just a note, I did not make this, so If you see some strange things that should not be there, tell me please.So this is what I copied from the Editor
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><? if ( is_home() ) { bloginfo('name'); echo(' — '); bloginfo('description'); } else wp_title('',true); ?></title> <? wp_head(); ?> <link rel="stylesheet" type="text/css" media="screen, projection" href="/wp-content/themes/nyce/style.css?" /> <link rel="stylesheet" type="text/css" media="print" href="/wp-content/themes/nyce/print.css" /> <link rel="pingback" href="<? bloginfo('pingback_url'); ?>" /> <link rel="alternate" type="application/rss+xml" title="<? bloginfo_rss('name'); ?>" href="<? bloginfo_rss('atom_url') ?>" /> <script src="/javascripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script src="/javascripts/cufon.js" type="text/javascript"></script> <script src="/javascripts/futura-med.font.js" type="text/javascript"></script> <script type="text/javascript"> Cufon.replace('h1, h4, #menu-nav li a, #prod-list a, .product h3', { hover: true }); $(document).ready(function(){ $("div.box").hide(); $("div.headlines").show(); $("li#headlines a").click( function() { $("div.signup").hide(); $("div.headlines").show(); $("li#signup").removeClass("active"); $("li#headlines").addClass("active"); return false; }); $("li#signup a").click( function() { $("div.headlines").hide(); $("div.signup").show(); $("li#headlines").removeClass("active"); $("li#signup").addClass("active"); return false; }); }); </script> <? if((is_home() && ($paged > 2 )) || is_date() || is_category()) { echo '<meta name="robots" content="noindex, follow, noarchive" />'; } ?> </head> <!-- Stops loading everything past here --> <?php // Find body class to add to WP defaults if(is_home()) { $body_class = "home"; } elseif(is_child("company") || is_child(85) || is_child("technology") || is_child("applications") || is_child("order")|| is_child("contact-us") || is_child("products") || is_child("resources") || is_child("zigbee-wireless") || is_child("wireless-solutions") || is_archive() || is_single()) { $body_class = "smaller"; } else { $body_class = "sub"; } ?> <body id="www_nycetechnology_com" <?php echo body_class( $body_class );?>> <div class="header container"> <div id="header"> <div id="logo"><a href="<? bloginfo('url'); ?>"><? bloginfo('name'); ?></a></div> <h4><? bloginfo('description'); ?></h4> <span class="reset"> </span> <!-- Removing this removes the main menu--> <?php wp_nav_menu(array('menu' => 'nav', 'depth' => '1')); ?> </div></div><!-- /header --> <div class="content container"> <div id="content"><div class="inner">But this is what it shows on the site
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> <link rel='index' title='NYCE Control' href='http://sandbox/wordpress' /> <link rel='prev' title='Control 4 How to' href='http://sandbox/wordpress/?page_id=1161' /> <link rel='next' title='Media Releases' href='http://sandbox/wordpress/?page_id=1476' /> <link rel='canonical' href='http://sandbox/wordpress/' /> <link rel="stylesheet" type="text/css" media="screen, projection" href="/wp-content/themes/nyce/style.css?" /> <link rel="stylesheet" type="text/css" media="print" href="/wp-content/themes/nyce/print.css" /> <link rel="pingback" href="http://sandbox/wordpress/xmlrpc.php" /> <link rel="alternate" type="application/rss+xml" title="NYCE Control" href="http://sandbox/wordpress/?feed=atom" /> <script src="/javascripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script src="/javascripts/cufon.js" type="text/javascript"></script> <script src="/javascripts/futura-med.font.js" type="text/javascript"></script> <script type="text/javascript"> Cufon.replace('h1, h4, #menu-nav li a, #prod-list a, .product h3', { hover: true }); $(document).ready(function(){ $("div.box").hide(); $("div.headlines").show(); $("li#headlines a").click( function() { $("div.signup").hide(); $("div.headlines").show(); $("li#signup").removeClass("active"); $("li#headlines").addClass("active"); return false; }); $("li#signup a").click( function() { $("div.headlines").hide(); $("div.signup").show(); $("li#headlines").removeClass("active"); $("li#signup").addClass("active"); return false; }); }); </script> </head> <!-- Stops loading everything past here -->Any help would be appreciated, sorry if there are horrendous grammatical errors and such, been trying to make this offline site work for a few days now
*Edit and I just saw that there was a forum for offline sites. Sorry could a Mod move it to the right place
The topic ‘Theme only loading header.php’ is closed to new replies.