Support » Plugins and Hacks » Remove some markup from output

Remove some markup from output

  • Your plugin’s great, but I have a few issues:

    1. The more link is placed in a <p> with a class of alignright.
    2. The excerpt is placed in a blockquote.

    Here’s some code to update to remove these items from the output. They should just output <div>s with classes so we can style via CSS.

    Replacement code:

    if ($excerpts > 0) { // show the excerpt ?>
                        <div class="rpwe"><?php
                        // the excerpt of the post
                        if (function_exists('the_excerpt_reloaded'))
                            the_excerpt_reloaded($instance['words'], $instance['tags'], 'content', FALSE, '', '', '1', '');
                        else the_excerpt();  // this covers Advanced Excerpt as well as the built-in one
                        if (!empty($instance['more_text'])) { ?><div class="rpwe-more"><a href="<?php the_permalink(); ?>"><?php echo $instance['more_text']; } ?></a></div>

  • The topic ‘Remove some markup from output’ is closed to new replies.