BChurch and bSocial
From IThemes Codex
(Difference between revisions)
(Added "How to add a clickable 'Read more' link below posts on front page") |
m |
||
| Line 37: | Line 37: | ||
} | } | ||
</pre> | </pre> | ||
| + | |||
| + | = FAQ 2 = | ||
| + | |||
| + | = FAQ 3 = | ||
| + | |||
| + | = FAQ 4 = | ||
Latest revision as of 10:12, February 19, 2011
Contents |
How to add a clickable 'Read more' link below posts on front page
- Before and After
1. Take a backup of index.php
2. Edit it in a text editor.
Replace all instances of
<?php the_excerpt_rss(); ?>
with
<?php
$my_excerpt = get_the_excerpt();
$my_excerpt = str_replace(' [...]', ' <div class="readmore"><a href="' . get_permalink() . '">Read More...</a></div>', $my_excerpt);
echo $my_excerpt;
?>
Source: http://wordpress.org/support/topic/how-to-make-display-a-link-in-the_excerpt-?replies=3
3. Add the following at the end of your theme's style.css:
.readmore {
font-weight: bold;
margin-top: 5px;
font-size: 11px;
}