• 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('&laquo; Older Posts'); ?>
    					</div>
    					<div id="nav-newer">
    						<?php previous_posts_link('Newer Posts &raquo;'); ?>
    					</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)
  • Hi,

    If u don’t want to display 4 boxes before content then remove the <div> having class=”right-front-page-boxes”. That will solve your provlem. i.e. Remove the following code from your category.php.

    <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>
    Thread Starter jwurster

    (@jwurster)

    I do want to display the 4 boxes like the front page. The idea is to make every page display like the front-page with respect to the 4 boxes.

    Theme Author Derek

    (@chiroderek)

    Hi, I’ve looked at your question a few times over the past couple of days, and I’m still not sure exactly what you’re trying to do, and why it’s not working.

    If you give me the URL of a page, and tell me what you’re tying to make that page do, I may be able to help you out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category, Archive and Single Post display’ is closed to new replies.