Where do I insert a hr tag in the index.php to create a line between posts?
-
Hi All,
I know this one has been covered a Million times, but no matter how much I search, I just can’t find an example that matches my index.php code.
I want to insert a <hr /> between my posts in my blog, and I’m having trouble finding out where to put it. I have experimented a bit, but the line either appears at the top only, bottom only or the entire page doesn’t show at all.
Bonus info – the template has been created with Artisteer, not sure that will change anything. Once the line is inserted in-between the posts, I will style it in the style.css file.
Can anyone tell me where to put it in the code below?
<?php get_header(); ?> <div class="art-layout-wrapper"> <div class="art-content-layout"> <div class="art-content-layout-row"> <div class="art-layout-cell art-content"> <?php get_sidebar('top'); ?> <?php if(have_posts()) { /* Display navigation to next/previous pages when applicable */ if ( theme_get_option('theme_' . (theme_is_home() ? 'home_' : '') . 'top_posts_navigation' ) ) { theme_page_navigation(); } /* Start the Loop */ while (have_posts()) { the_post(); get_template_part('content', get_post_format()); } /* Display navigation to next/previous pages when applicable */ if (theme_get_option('theme_bottom_posts_navigation')) { theme_page_navigation(); } } else { theme_404_content(); } ?> <?php get_sidebar('bottom'); ?> <div class="cleared"></div> </div> <div class="art-layout-cell art-sidebar1"> <?php get_sidebar('default'); ?> <div class="cleared"></div> </div> </div> </div> </div> <div class="cleared"></div> <?php get_footer(); ?>
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Where do I insert a hr tag in the index.php to create a line between posts?’ is closed to new replies.