• Hi everyone
    I created a simple theme with the following code
    header.php
    Code:
    <html>
    <head>
    Tema <title> Dani5 </ title>
    <Link rel = “stylesheet” href = “<Dani5 php (“style.css”);?>”>
    </ Head>
    <body>
    <div id=”wrapper”>
    <div id=”header”>
    <h1> HEADER </ h1>
    </ Div>
    Index.php
    Code:
    <?php get_header(); ?>
    <div id=”main”>
    <div id=”content”>
    <h1>Main Area</h1>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h1><?php the_title(); ?></h1>
    <h4>Posted on <?php the_time(‘F jS, Y’) ?></h4>
    <p><?php the_content(__(‘(more…)’)); ?></p>
    <hr> <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p><?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    </div>
    <div id=”delimiter”>
    </div>
    <?php get_footer(); ?>
    sidebar.php
    Code:
    <div id=”sidebar”>
    <h2 ><?php _e(‘Categories’); ?></h2>
    <ul >
    <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>

    <h2 ><?php _e(‘Archives’); ?></h2>
    <ul >
    <?php wp_get_archives(‘type=monthly’); ?>

    </div>
    footer.php
    Code:
    <div id=”footer”>
    <h1>FOOTER</h1>
    </div>
    </div>
    </body>
    </html>
    style.css
    Code:
    body { text-align: center; }
    #wrapper { display: block; border: 1px #a2a2a2 solid; width:90%; margin:0px auto; }
    #header { border: 2px #a2a2a2 solid; }
    #content { width: 75%; border: 2px #a2a2a2 solid; float: left; }
    #sidebar { width: 23%; border: 2px #a2a2a2 solid; float: right; }
    #delimiter { clear: both; }
    #footer { border: 2px #a2a2a2 solid; }
    .title { font-size: 11pt; font-family: verdana; font-weight: bold; }
    Error installing the latest version of wordpress
    Installing Theme from uploaded file: Dani5.zip
    Unpacking the package…
    Installing the theme…
    The package could not be installed. The style.css stylesheet doesn’t contain a valid theme header.
    Theme install failed.
    What do I have to change the theme to work
    thank you

  • The topic ‘I can not install the theme on localhost’ is closed to new replies.