Wsparcie » Motywy » nie wyświetla stopki

  • Tworzę własny motyw. Mam problem ze stopką, ponieważ się nie wyświetla. Oto moje pliki:
    index.php

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
      <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>" />
        <link rel="profile" href="http://gmpg.org/xfn/11" />
        <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
        <title><?php bloginfo( 'name' ); ?><?php wp_title( '—' ); ?></title>
        <?php if ( is_singular() && get_option( 'thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?>
        <?php wp_head(); ?>
      </head>
      <body <?php body_class(); ?>>
        <div id="container">
          <div id="header">
            <div id="logo"><h1><a>"><img src="wp-content/themes/simplest/img/logo.png"</a></div>
            <div id="menu"><?php if ( has_nav_menu( 'menu' ) ) : wp_nav_menu(); else : ?>
    
    <ul><?php wp_list_pages( 'title_li=&depth=-1' ); ?></ul>
    </div>
    
            <?php endif; ?>
          </div><!-- header -->
    	<div id="space"></div>
          <div id="content">
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div <?php post_class(); ?>>
                <h2><a>"><?php the_title(); ?></a></h2>
                <?php the_content(); ?>
                <?php if ( !is_singular() && get_the_title() == '' ) : ?>
                  <a>">(more...)</a>
                <?php endif; ?>
                <?php if ( is_singular() ) : ?>
                  <div class="pagination"><?php wp_link_pages(); ?></div>
                <?php endif; ?>
                <div class="clear"> </div>
              </div><!-- post_class() -->
              <?php if ( is_singular() ) : ?>
    
                <?php comments_template(); ?>
              <?php endif; ?>
            <?php endwhile; else: ?>
              <div class="hentry"><h2>Sorry, the page you requested cannot be found</h2></div>
            <?php endif; ?>
            <?php if ( is_active_sidebar( 'widgets' ) ) : ?>
              <div class="widgets"><?php dynamic_sidebar( 'widgets' ); ?></div>
            <?php endif; ?>
            <?php if ( is_singular() || is_404() ) : ?>
              <div class="left"><a>">« Home page</a></div>
            <?php else : ?>
              <div class="left"><?php next_posts_link( '« Older posts' ); ?></div>
              <div class="right"><?php previous_posts_link( 'Newer posts »' ); ?></div>
            <?php endif; ?>
            <div class="clear"> </div>
          </div><!-- content -->
        </div><!-- container -->
        <?php wp_footer(); ?>
      </body>
    </html>

    footer.php

    <div id="fotoer">
    
        <div id="page">
        	<div id="column1"><h1>Kontakt</h1><p>Email: flamner@gmail.com
    Jabber: flamner@jabber.org
    GG: 5832481</p></div>
    		<div id="line"></div>
            <div id="column2"><h1>Cennik</h1><p>Ceny usług są ustalane indywidualnie.
    Jeśli chcesz zamówić stronę skorzystaj z formularza.</p></div>
    		<div id="line"></div>
            <div id="column3"><h1>Promocje</h1><p>Zapraszam do zapoznania się z aktualnymi promocjami. Atrakcyjne zniżki dla osób zamawiających więcej niz jeden projekt!</p></div>
        </div>
    
        </div>
    
    <?php wp_footer(); ?>
    </body>
    </html>

    wie ktoś w czym tkwi problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Zamiast funkcji <?php wp_footer(); ?> w pliku index.php użyj funkcji `<?php get_footer(); ?>

    Poza tym jak zamykasz tagi </body> i </html> w pliku footer.php to nie musisz ich zamykać także w pliku index.php.
    <div id="fotoer"> to tak specjalnie jest czy literówka? 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Temat ‘nie wyświetla stopki’ jest zamknięty na nowe odpowiedzi.