Category, Archive and Single Post display
-
I’m adding each of these php files to my child theme to try to make these pages display like the front page and other pages. I made a page template like the front-page to apply to my pages. This works fine.
The problem is that the “content” displays below the 4 front page boxes on the categories, archives and single post pages. Here is the category.php I have:
<?php get_header(); ?> <div id="wrapper2"> <div id="container2"> <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?> </div> </div> <div id="wrapper3"> <div id="container3"> <div class="right-front-page-boxes"> <div id="top"> <a href="<?php echo esc_url(get_theme_mod('top_box_link', esc_url(home_url('/contact')))); ?>"><?php echo get_theme_mod('top_box_header', __('Set an Appointment' , 'chiro-pro')); ?><br><span><?php echo get_theme_mod('top_box_sub_header', __('Request your appointment online' , 'chiro-pro')); ?><br><img src="<?php echo esc_url((get_template_directory_uri() . '/images/go-button.png')); ?>" alt="go button" /></span></a> </div> <a href="<?php echo esc_url(get_theme_mod('second_box_link', esc_url(home_url('/forms')))); ?>"><?php echo get_theme_mod('second_box_header', __('New Patient Forms' , 'chiro-pro')); ?><br><span><?php echo get_theme_mod('second_box_sub_header', __('Print them ahead of time' , 'chiro-pro')); ?></span></a> <a href="<?php echo esc_url(get_theme_mod('third_box_link', esc_url(home_url('/blog')))); ?>"><?php echo get_theme_mod('third_box_header', __('Latest News' , 'chiro-pro')); ?><br><span><?php echo get_theme_mod('third_box_sub_header', __('Promotions, Coupons, News' , 'chiro-pro')); ?></span></a> <a href="<?php echo esc_url(get_theme_mod('fourth_box_link', esc_url(home_url('/contact')))); ?>"><?php echo get_theme_mod('fourth_box_header', __('Location and Hours' , 'chiro-pro')); ?><br><span><?php echo get_theme_mod('fourth_box_sub_header', __('Maps and driving directions' , 'chiro-pro')); ?></span></a> </div> <div class="single-column"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part('content','post');?> <?php endwhile; ?> <div class="blog-index-post-nav-links"> <div id="nav-older"> <?php next_posts_link('« Older Posts'); ?> </div> <div id="nav-newer"> <?php previous_posts_link('Newer Posts »'); ?> </div> </div> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </div> <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Category, Archive and Single Post display’ is closed to new replies.