Editing the ‘more tag’
-
My original more tag <–more–> looked like this in index.php:
<?php the_content(‘Read the rest of this entry »’); ?>I edited it to include some CSS and to reference the title of my post.
<?php the_content(‘ <span class=”moretag”>Continue reading ‘.get_the_title());?>First off I can’t figure out where to put the end </span> tag in without messing stuff up.
Secondly, how can I include quotes around my title.
And how do I get it to not jump to the spot where the <–more–> tag is set in the post.
I’d much rather have it behave like a normal link not an anchor.
The wordpress site said to add the following to functions.php but that really messes things up. Here us the code:
function remove_more_jump_link($link) {
$offset = strpos($link, ‘#more-‘);
if ($offset) {
$end = strpos($link, ‘”‘,$offset);
}
if ($end) {
$link = substr_replace($link, ”, $offset, $end-$offset);
}
return $link;
}
add_filter(‘the_content_more_link’, ‘remove_more_jump_link’);Thanks for any help.
I’m new at this stuff so give me a break!
- The topic ‘Editing the ‘more tag’’ is closed to new replies.