I wanted to a add a black content bar with the title “Today’s Headlines” above my latest posts on my homepage and was told by a Design Wall staff member to :
– go to Dashboard / Appearance / Customize / General Settings , and add this code below to custom wp_head
<style>
.section-title {
text-transform: uppercase;
font-family: "NovecentowideNormalRegular",Georgia,"Times New Roman",Times,serif;
font-size: 11px;
padding: 0 20px!important;
background: #000;
color: #FFF!important;
margin: 30px 0 0!important;
border: none!important;
-webkit-border-radius: 0!important;
-moz-border-radius: 0!important;
border-radius: 0!important;
-webkit-box-shadow: -1px 0 0 #222 inset;
-moz-box-shadow: -1px 0 0 #222 inset;
box-shadow: -1px 0 0 #222 inset;
}
</style>
– Open file index.php in your site / wp-content / themes / your theme / index.php – Replace following code – form line 15 to line 28
<?php if( is_active_sidebar( 'dw_focus_home' ) ) { ?>
<?php dynamic_sidebar('dw_focus_home'); ?>
<?php } else { ?>
<div>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'archive' ); ?>
<?php endwhile; ?>
</div>
<?php dw_focus_pagenavi(); ?>
<?php } ?>
with
<?php dynamic_sidebar('dw_focus_home'); ?>
<h3>Today’s Headlines</h3>
<div>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'archive' ); ?>
<?php endwhile; ?>
</div>
I followed these instructions and was successful in adding a content bar to my homepage but the "READ MORE" button at the bottom
of the page no longer appears. How can I get it back?
My homepage is set to "latest posts" in the readings section in WordPress's settings.
1 Answers
Hi Jessica,
I have answered this issue at the following link:
http://cmspioneer.com/designwall/question/how-do-i-add-a-content-bar-with-a-custom-title-above-my-latest-posts-on-my-homepage/#answer-23361
Please login or Register to submit your answer