• Resolved vishal_hd

    (@vishal_hd)


    Hey I was trying to make a wp theme but it only returned a white screen. Can You guys help me? The Theme Isn’t finished, please excuse any mistakes, I have all of the codes that I use in the theme here:

    Index.php

    <?php get_header(); ?>
      <div class="masterfeats">
    
      <div class="quicklinks">
      	<h2>Featured News</h2>
        	<div class="quickxitem">
        		<div class="img">
                	<img src="images/ff_new_revolution_r3_c7.jpg" width="120" height="120" alt="News" />
                </div>
                <div class="title"><a href="#">CAD Information - VideoGame Designing</a></div>
                <div class="date">March 17th 2009</div>
                <div class="itemsummary">Producer of Street Fighter IV Yoshinori Ono tells us about how he got into the industry, his love for Space Invaders, and some scandalous bits of information that might surprise you. What game do you think he's playing? Find out now!<br class="clear" />
            </div>
      </div>
    
      </div>
    
      <div class="promoted">
      	<div class="title">CAD Information - VideoGame Designing</div>
      		<div class="item">Producer of Street Fighter IV Yoshinori Ono tells us about how he got into the industry, his love for Space Invaders, and some scandalous bits of information that might surprise you. What game do you think he's playing? Find out now!</div>
            <div class="more">(<a href="#">Read More...</a>)</div>
        </div>
    
        <br class="clear" />
      </div>
      <div class="bodied_information">
    
    <?php get_sidebar(); ?>
    
      	<div class="shift_left">
        	<div class="anima">
            	Top News
            </div>
            <div class="newswrap">
        <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
           	  <div class="item" id="<?php the_ID(); ?>">
                	<img src="images/ff_new_revolution_r3_c7.jpg" width="180" height="100" alt="Item #1" />
                    <div class="title"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
                <div class="date"><?php the_time('F jS, Y') ?></div>
                <div class="itemsummary"><?php the_content('Read the rest of this entry &raquo;'); ?></div>
           	  </div>
    
            </div>
        	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php get_search_form(); ?>
    
    	<?php endif; ?>
            <div class="end"></div>
        </div>
        <div class="wideadblock">
        ADVERTISEMENT
        	<img src="images/ff_new_revolution_r3_c7.jpg" width="468" height="60" />
        </div>
    
      	<div class="shift_left">
        	<div class="anima">
            	Quick Fix News - Anime News
            </div>
            <div class="newswrap">
           	  <div class="item">
           	    <div class="title"><a href="#">CAD Information - VideoGame Designing</a></div>
                <div class="date">March 17th 2009</div>
                <div class="itemsummary"><p>Both Hybrid Theory and Meteora combined the nu metal[55][56][57][58][59] and rap rock[60][59] sound with influences and elements from hip-hop, alternative rock,[61] and electronica, utilizing programming and synthesizers. William Ruhlmann from Allmusic regarded it as "a Johnny-come-lately to an already overdone musical style,"[62] whereas Rolling Stone called "Breaking the Habit" "risky, beautiful art".[63]</p>
    
    <p>In Minutes to Midnight the band experimented with their established sound and drew influences from a wider and more varied range of genres and styles, a process Los Angeles Times compares to a stage in U2's work.[64] In it, only two of the songs feature rapping, and the majority of the album can be considered alternative rock,[65][66] rather than nu metal or rap rock. It also is their first studio album to feature guitar solos.</p>
    
    <p>Linkin Park's use of two separate vocalists has become a large part of their music. Chester Bennington is most known for using screaming vocals common in various forms of metal, while also using more melodic singing, and has placed 46th in Hit Paraders list of "Heavy Metal's All-Time Top 100 Vocalists".[67]</p>
    
    <p>Mike Shinoda is the group's MC, and does all of the rapping. Mike has also done all of the backing vocals live, and in their latest album, Minutes to Midnight, he sings lead vocals on "In Between", "Hands Held High" and the B-side "No Roads Left". Shinoda has also been placed in Hit Parader's list of "Heavy Metal's All-Time Top 100 Vocalists" at number 72.[67]</p></div>
                </div>
    
            </div>
            <div class="end"></div>
        </div>
        <br class="clear" />
      </div>
      </div>
    <?php get_footer(); ?>

    Sidebar.php

    <div class="comp_right">
      <?php 	/* Widgetized sidebar, if you have the plugin installed. */
    					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
        	<div class="boxitem">
            	<div class="h2title">Search Form</div>
                <div class="itemx">
                <div class="type2"><?php get_search_form(); ?></div>
                </div>
                <div class="end2"></div>
            </div>
            <div class="boxitem">
            	<div class="h2title">Media System</div>
                <div class="itemx">
                <div class="type2"><?php wp_list_categories('show_count=1&amp;title_li=<h2>Categories</h2>'); ?></div>
                </div>
                <div class="end2"></div>
            </div>
            <div class="adblock">
            	ADVERTISEMENT<br />
                <img src="images/ff_new_revolution_r3_c7.jpg" width="300" height="250" />
            </div>
            <div class="boxitem">
            	<div class="h2title">Archives</div>
                <div class="itemx">
                <div class="type2"><?php wp_get_archives('type=monthly'); ?></div>
                </div>
                <div class="end2"></div>
            </div>
      </div>

    Header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?>
    <!--FinalFRACUS &raquo; Anime, Music, Video Games, The Latest News From Around The Web! &laquo;--></title>
    
    <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'); ?>" />
    <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" media="screen" />
    <!--jQUERY-->
    
    <!--/jQuery-->
    <?php wp_head(); ?>
    </head>
    
    <body>
    <div class="fullendwrap">
    	<div class="topend">
        	<div class="loginbox">
            	<form action="wp-login.php" method="post">
                <h2>
                <div class="rightendreg">(<a href="wp-register.php">Register</a>)</div>
                	Login
                </h2>
                <input type="text" name="wp-username" /><input type="password" name="wp-password" />
                <img src="images/go_form.jpg" width="42" height="23" style="position:absolute; top: 35px;" />
                </form>
            </div>
      </div>
      <div class="buff_divider">
      <div class="navigation_barrier">
    		<div id="slidetabsmenu">
      			<ul>
    				<li id="current"><a href="/" title="Home"><span>FinalFRACUS</span></a></li>
    				<li><a href="/media/anime" title="Home"><span>Anime</span></a></li>
    				<li><a href="/media/music" title="Home"><span>Music</span></a></li>
    				<li><a href="/media/video-games" title="Home"><span>Video Games</span></a></li>
    				<li><a href="/media/news" title="FinalFRACUS"><span>News</span></a></li>
      			</ul>
    		</div>
            <br style="clear: left;" />
      </div>
      <div class="mastermenu">
      	<a href="">About FinalFRACUS</a><a href="">FinalFRACUS FAQS</a><a href="">FinalFRACUSNet</a>
      </div>
    
      <div class="adspace">
      	<img src="images/ff_new_revolution_r3_c7.jpg" width="895" height="120" />
      </div>

    Footer.php

    <div class="t2">
      	<div class="buffpres">
        Top Tags: <a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a>
        </div>
        <div class="buffpres">
        Entries By Date: <a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a><a href="#">and some scandalous bits of information that</a>
        </div>
      	<div class="endfull"></div>
      </div>
    
    </div>
    <?php wp_footer(); ?>
    </body>
    </html>

    Can you guys please Help me? I really need this theme working. Thanks alot in advance.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Have you created a stylesheet yet? The display is controlled by css, not php.

    True but in that case s/he’d get unstyled content – not a white screen (which I assume is blank).

    @ishal_hd: Have you checked the page source? Is anything being sent to the browser?

    Thread Starter vishal_hd

    (@vishal_hd)

    @chrisber I have a stylesheet, but nothing is showing up.

    @esmi: I have and nothing is being sent.

    If there’s nothing in the source, the problem could be in header.php – not index.php.

    Thread Starter vishal_hd

    (@vishal_hd)

    Well I have the header listed in the post above, could you see what I am doing wrong? I am have tried everything, even leaving out everything but the wp_header() !! I don’t understand. Please help, thanks ??

    Nothing major leaps out at me but a couple of minor possibilities spring to mind:

    – you need a single space after the last ‘-‘ in your opening HTML comment tag and another single space before the ‘-‘ in the closing comment tag.
    – don’t call wp-login.php directly. Use <?php wp_loginout();?>
    – ditto for wp-register.php. Use <?php wp_register();?>
    – try dropping the DOCTYPE down to:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    Thread Starter vishal_hd

    (@vishal_hd)

    @esmi I have done what you have said, but it is still not sending across anything and it isn’t working. And the white screen remains.

    @vishal_hd If you email a zip of the theme I’ll work on it. [email protected]

    index.php
    sidebar.php

    Fix: sidebar.php
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

    You didn’t follow through with an else statement so you don’t need the extra : at the end there. It should be

    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) ?>

    Fix: index.php
    `<div class=”itemsummary”><?php the_content(‘Read the rest of this entry »’) ?></div>
    </div>

    </div>

    <?php else : ?>`

    You never used endwhile. It should look like this.
    ` <div class=”itemsummary”><?php the_content(‘Read the rest of this entry »’) ?></div>
    <?php endwhile; ?>
    </div>

    </div>

    <?php else : ?>`

    Thread Starter vishal_hd

    (@vishal_hd)

    thanks alot dude. kudos to ya. ??

    dremation you done this for free? Man you must have a lot of free time on your hands but nice one.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘I need help with WordPress theme code’ is closed to new replies.