フォーラムへの返信

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • フォーラム: テーマ
    返信が含まれるトピック: フッターがコンテンツにくっついてしまう
    トピック投稿者 keeponbeat

    (@keeponbeat)

    おおお…!!
    見事に解決しました。
    どうもありがとうございました!m(_ _)m

    フォーラム: テーマ
    返信が含まれるトピック: フッターがコンテンツにくっついてしまう
    トピック投稿者 keeponbeat

    (@keeponbeat)

    参考のため、index.phpとsingle.phpのコードも添付させていただきます。

    index.php

    <?php
    /**
     * Theme index file
     */
    
    ?>
    
    <?php get_header(); ?>
    
    <?php if (have_posts()) : ?>
    <div id="post-area">
    
    <?php while (have_posts()) : the_post(); ?>
    
       		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		 <?php if ( has_post_thumbnail() ) { ?>
             <div class="pinbin-image"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'summary-image' );  ?></a></div>
              <div class="pinbin-category"><p><?php the_category(', ') ?></p></div>
    
    		  <?php } ?>
           			<div class="pinbin-copy"><h2><a class="front-link" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
                    <p class="pinbin-date"><?php the_time(get_option('date_format')); ?>  </p>
    
                      <?php the_excerpt(); ?>
    
                   <p class="pinbin-link"><a href="<?php the_permalink() ?>">→記事を読む</a></p>
             </div>
           </div>
    
    <?php endwhile; ?>
    </div>
    <?php else : ?>
    
    <article id="post-0" class="post no-results not-found">
            <header class="entry-header">
              <h1 class="entry-title"><?php _e( 'Nothing Found', 'pinbin' ); ?></h1>
            </header><!-- .entry-header -->
    
            <div class="entry-content">
              <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'pinbin' ); ?></p>
              <?php get_search_form(); ?>
            </div><!-- .entry-content -->
    </article><!-- #post-0 -->
    
    <?php endif; ?>
        <nav id="nav-below" class="navigation" role="navigation">
            <div class="view-previous"><?php next_posts_link( __( '« Previous', 'pinbin' ) ) ?></div>
            <div class="view-next"><?php previous_posts_link( __( 'Next &#187', 'pinbin' ) ) ?> </div>
        </nav>
    <?php get_footer(); ?>

    single.php

    <?php
    /**
     * Single post template
     */
    
    ?>
    <?php get_header(); ?>
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>     
    
       		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php if ( has_post_thumbnail() ) { ?>
      <div class="pinbin-image"><?php the_post_thumbnail( 'detail-image' );  ?></div>
      <div class="pinbin-category"><p><?php the_category(', ') ?></p></div>
          <div class="post-nav">
              <div class="post-prev"><?php previous_post_link('%link', '&larr;'); ?></div>
              <div class="post-next"><?php next_post_link('%link', '&rarr;'); ?></div>
          </div>
                <div class="pinbin-copy">
    <?php } else { ?>
          <div class="post-nav">
              <div class="post-prev"><?php previous_post_link('%link', '&larr;'); ?></div>
              <div class="post-next"><?php next_post_link('%link', '&rarr;'); ?></div>
          </div>
                <div class="pinbin-copy">
                  <div class="pinbin-category"><p><?php the_category(', ') ?></p></div>
    <?php } ?>
                    <h1><?php the_title(); ?></h1>
                     <p class="pinbin-meta"><?php _e( 'By', 'pinbin' ); ?> <?php the_author(); ?>, <?php the_time(get_option('date_format')); ?></p>
               		 <?php the_content('Read more'); ?>
    	<div class="pagelink"><?php wp_link_pages(); ?></div>
    	 <div class="posttags"><?php the_tags(); ?></div>
                    <div class="clear"></div>
    				<?php comments_template(); ?> 
    
                    </div>
    
           </div>
    
    		<?php endwhile; endif; ?>
    
    <?php get_footer(); ?>

2件の返信を表示中 - 1 - 2件目 (全2件中)