August 24, 200917 yr creating a theme for a idea i have, and came stuck! Its the first time i have encountered this! My theme appears blank e.g. www.garethgillman.co.uk/blog 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('«', 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(); ?> anyone have any idea ? It's not a html / css problem. I think its the wordpress if statement! The blog was working fine before the new theme!
August 25, 200917 yr Try the following : Log into wp-admin and deactivate the theme. Delete the them folder copy the theme folder to the location again Then activate theme. Some times I find that when you copy themes, corruptions occur. If this doesnt work then its the theme that is faulty. You need read the instructions for the theme and make sure that you are using the correct version of wordpress as indicated by the read me file intructions.(Make sure you activate plugins, and theme settings in WP-admin, most times themes are straighforward but some themes need plugins and extra settings). Hope all this helps Good Luck!!!!
August 25, 200917 yr Author i have tried that, its a custom theme i built so no read me files. It's built for the latest WP so should work! It's an error with the wp loop i think
August 25, 200917 yr The basic form of the loop is this : <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> // this is the inside of the loop <?php endwhile; ?> <?php else : ?> <?php endif; ?> If you get the above right then its not the loop. You may be missing <?php wp_head(); ?> in the header.php file. Trying putting that in just above the </head> tag in header.php. Other than that it seems like you may need to go back to the drawing board beacause some of the wordpress logic is confusing and its best to start from a working template and change bit by bit and at the same time testing it thoroughly with every change.
August 29, 200916 yr If you're still having the same problem it's probably got nothing to do with your theme files - check the wp-config.php file and make sure your database settings are correct. Currently the page says 'Error establishing a database connection'.
Create an account or sign in to comment