[Plugin: Advanced Excerpt] “Read More” – Location & Styling
-
Hi,
Great plugin. Can you explain how to move the location of the “Read More” link? Also, is there a way to style the “Read More” link? I’m just looking to make it slightly larger and possibly bold.
Apologies for the really basic question. I’m pretty sure the answer is somewhere in the code below, but I’m not familiar enough with it to start poking around:
// Read more
if(1 == $add_link)
{
$ellipsis = $ellipsis . sprintf(‘ %s‘, get_permalink(), $read_more);
}// Adding the ellipsis
if(($pos = strpos($text, ‘</p>’, strlen($text) – 7)) !== false)
{
// Stay inside the last paragraph (if it’s in the last 6 characters)
$text = substr_replace($text, $ellipsis, $pos, 0);
}
else
{
// If <p> is an allowed tag,
// wrap the ellipsis for consistency with excerpt markup
if(in_array(‘_all’, $allowed_tags) || in_array(‘p’, $allowed_tags))
$ellipsis = ‘<p>’ . $ellipsis . ‘</p>’;Thanks!
- The topic ‘[Plugin: Advanced Excerpt] “Read More” – Location & Styling’ is closed to new replies.