Building simple theme, but won't show up.
-
I wanted to learn more about wp by building a small, simple theme. After creating couple of lines, I uploaded the files to the server and nothing shows up. Already checked the permissions of the files and tried gain some information via wp_debug, but without any success.
style.css has only the default needed comment and functions.php is blank.
I believe I messed something with the code:header.php
<?php /** * The Header * * Displays all of the <head> section, header and top navigation areas * * @package basia * */ ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <title><?php wp_title(); ?></title> <link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico" /> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <!-- #b-header-container BEGIN --> <div id="b-header-container"> <header id="b-header-logo"> <div id="logo"><a href="<?php echo home_url() ?>/"><?php bloginfo( 'name' ); ?></a></div> <div id="tagline"><?php bloginfo( 'description' ); ?></div> </header> <ul class="b-header-social"> <li class="social-fb"><a href="###"><img src="<?php echo get_template_directory_uri(); ?>/img/social-fb.png" /></a></li> <li class="social-g"><a href="###"><img src="<?php echo get_template_directory_uri(); ?>/img/social-g.png" /></a></li> <li class="social-t"><a href="###"><img src="<?php echo get_template_directory_uri(); ?>/img/social-t.png" /></a></li> <li class="social-reddit"><a href="###"><img src="<?php echo get_template_directory_uri(); ?>/img/social-reddit.png" /></a></li> <li class="social-wp"><a href="###"><img src="<?php echo get_template_directory_uri(); ?>/img/social-wp.png" /></a></li> <li class="social-contact"><a href="###"><img src="<?php echo get_template_directory_uri(); ?>/img/social-contact.png" /></a></li> </ul> </div>
footer.php<?php /** * The template for displaying the footer. * * Contains the closing of the #b-container div and all content after * * @package basia */ ?> <?php wp_footer(); ?> </body> </html>
index.php
<?php /** * The template for displaying home page. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package basia */ get_header(); ?> </div> <!-- #b-header-container END --> <p> Some content and widgets to the right. </p> <?php get_footer(); ?>
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Building simple theme, but won't show up.’ is closed to new replies.