Changing the div
-
Just wondering how you can change both the show and hide replies link to be included in an existing div.
I ask because it’s actually a span class and I’m not sure how, or if I should, change that
Is this the code that needs changing:
class bb_Walker_Comment extends Walker_Comment { function start_lvl(&$output, $depth = 0, $args = array()) { $GLOBALS['comment_depth'] = $depth + 1; $options = get_option('bb_jcr_options'); switch ( $args['style'] ) { case 'ol': echo "<span class='replylink'><span class='show'>" . $options['show_replies'] . "</span>\n</span>\n"; echo "<ol class='children'>\n"; break; default: case 'ul': echo "<span class='replylink'><span class='show'>" . $options['show_replies'] . "</span>\n</span>\n"; echo "<ul class='children'>\n"; break; } } function end_lvl(&$output, $depth, $args) { $GLOBALS['comment_depth'] = $depth + 1; switch ( $args['style'] ) { case 'ol': echo "<!--/children-->\n"; echo "</ol>\n"; break; default: case 'ul': echo "<!--/children-->\n"; echo "</ul>\n"; break; } } }
It’s important the show and hide button are in the same format.
Thanks in advance!
https://www.ads-software.com/plugins/jquery-expandable-comments/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Changing the div’ is closed to new replies.