• on a single page after the read more span has been reached I need to somehow add a </div>

    because I want to clue something and start a new div.

    how can I add this after the span more link?
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Paste this into functions.php inside your theme folder (thanks, codex):

    function new_excerpt_more($more) {
           global $post;
    	return '<a href="'. get_permalink($post->ID) . '">Read more &rarr;</a></div>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    This will change the read more text to: Read more → as well as add your </div> code.

    Thread Starter Eric

    (@shamai)

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding html after the more link on single’ is closed to new replies.