Help Creating a Custom Theme
-
Hey everyone. I’m new to wordpress, but not web development, and decided to begin creating my own custom theme. I already have the css and html coded out, and am now converting it to a wordpress theme. At the moment i have the following files in my theme directory folder: index.php, header.php, footer.php, sidebar-right.php, sidebar-left.php, page.php, comments.php, functions.php(which is blank), single.php, and style.css. When I live preview the site in wordpress admin, it looks fine. However, when I activate it, and load it in the browser, only the footer and some unformatted links show.
Here is a link to how it looks when activated https://byerleywebdev.com/wordpress/
And this is how it looks when viewed in Live Preview
https://byerleywebdev.com/images/Capture.JPGHere is what my index.php file looks like.
<?php get_header(); ?> <div id="contentContainer"> <?php get_sidebar('left'); ?> <div id="contentCenter"> <div id="bodyCenter"> <p>This site is dedicated to delivering content related to web design, sporting news, and information about Byerley Web Development. </p> <h4 id="contentTitle" style="width:260px;">Check out the stuff below</h4> <ul id="homePageList"> <li>Helpful code snippets</li> <li>HTML/CSS, PHP, Javascript, Jquery, MySql</li> <li>HTML Color Codes</li> <li>Links to web design resources</li> </ul> <p>You will also find the latest sporting news related to the NFL, College Basketball, College Football, NBA, MLB, and East Tennessee State University Athletics</p> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="postBox"> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content(); ?> <p><?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> | <?php the_category(', '); ?> | <?php comments_number('No comment', '1 comment', '% comments'); ?></p> <?php endwhile; else: ?> <h2>Woops...</h2> <p>Sorry, no posts we're found.</p> <?php endif; ?> <p align="center"><?php posts_nav_link(); ?></p> </div> </div> <?php get_sidebar('right'); ?> </div> <div style="clear:both;"></div> <!-- close contentContainer --> </div> <?php get_footer(); ?>
I’d be glad to post what some of my other files look like. Can anyone point me in the right direction as to what im doing wrong? I would greatly appreciate it.
- The topic ‘Help Creating a Custom Theme’ is closed to new replies.