• Been building a theme, installed fine but shows as blank page. I can login to the admin panels fine except i can’t see the Homepages etc.

    the code for the site is

    header.php

    <!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" lang="en" xml:lang="en">
    <head>
    <!-- meta -->
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <!-- /meta -->
    <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    
    <!-- stylesheets / javascript -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <!-- end -->
    </head>
    <body>
    <div id="firefox">
     Download Firefox to browse the internet faster, and have access to 1000's of Add ons. <a href="http://www.mozilla-europe.org/en/firefox/" title="Download Firefox - The webs safest browser">Get FireFox Now</a>
    </div><!-- firefox -->
    <br />
    <div id="wrap">
     <div id="header">
      <h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>">
       <?php bloginfo('name'); ?>
      </a></h2>
      <p class="desc">
       <?php bloginfo(’description’); ?>
      </p>
     </div><!-- /header -->
     <div id="nav">
      <ul>
      <?php if(is_home() && !is_paged()){ ?>
       <li class="current_page_item">
        <a href="<?php echo get_settings('home'); ?>" title="You are Home">
         Blog Navigation
        </a>
       </li>
     <?php } else { ?>
       <li>
        <a href="<?php echo get_settings('home'); ?>" title="Click for Home">Blog Home</a>
       </li>
        <?php } ?>
        <?php  wp_list_pages('sort_column=menu_order&title_li='); ?>
       <li>
        <a class="rss" rel="alternate" href="<?php bloginfo('rss2_url'); ?>"
        title="Really Simply Syndication">RSS Feed</a>
       </li>
      </ul>
     </div><!-- nav -->

    index.php
    `<?php get_header(); ?>
    <div id=”content”>
    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>
    <div id=”left”>
    <p class=”content”>
    <?php the_content(); ?>
    </p>
    </div><!– /left –>
    <?php endwhile; ?>
    <?php else : ?>
    <div id=”left”>
    <h2><?php _e(’Not Found’); ?></h2>
    </div><!– left –>
    <?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>’

    the page is at http://www.garethgillman.co.uk/blog

Viewing 14 replies - 1 through 14 (of 14 total)
  • <!– Page not cached by WP Super Cache. No closing HTML tag. Check your theme. –>

    that is the error message

    Thread Starter gareth gillman

    (@faevilangel)

    i have a closing </body> and </html> in the footer.php

    something is stopping from the index.php from loading

    Thread Starter gareth gillman

    (@faevilangel)

    anyone ?

    show your footer.php as well.

    Peter

    Thread Starter gareth gillman

    (@faevilangel)

    <div id="footer">
     <a href="<?php bloginfo('name'); ?>">&copy;2009 Gareth Gillman</a> | Theme by <a href="http://www.garethgillman.co.uk" title="Gareth Gillman web design">Gareth Gillman</a> | <a href="#">CSS3 Curve Theme</a> | All Rights Reserved
    </div><!-- /footer -->
    </div>
    </body>
    </html>

    ">©2009 Gareth Gillman | Theme by Gareth Gillman | CSS3 Curve Theme | All Rights Reserved

    Something missing?

    please put between backticks.

    Ah, Thnx.

    Peter

    Nothing out of the ordinary here… let’s see your sidebar.php as well.

    Other possibility: badly behaving plugins.

    Peter

    Thread Starter gareth gillman

    (@faevilangel)

    sidebar.php

    <div id="right">
       <div class="widget">
        <ul>
         <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar() ) : ?>
         <?php endif; ?>
        </ul>
       </div><!-- widget -->
       <div class="ads">
        Google Ads Code Here
       </div><!-- ads -->
     </div><!-- right -->
    </div><!-- content -->

    Have you tried:

    – deactivating all plugins – except WP Super Cache – to see if this resolves the problem? If this works, re-activate the other plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-related problems?

    Thread Starter gareth gillman

    (@faevilangel)

    disabled all the plugins, and didn’t work, change to the classic theme and it works

    its an error in my coding somewhere

    Is your home page a posts page or a static page?

    Thread Starter gareth gillman

    (@faevilangel)

    static

    In that case, we need to see either page.php or the custom page template that is used by your home page. That may well be where the error is.

    Thread Starter gareth gillman

    (@faevilangel)

    the page.php and single.php has the same code as the index.php

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘blank theme!’ is closed to new replies.