• 5stars!but…
    I think you’d better add an option for pages,such as:

    function bpmh_bkmks_add_in_content( $content ) {
    
      	if( ( is_single() || ( bp_is_blog_page() && is_page() ) ) && !is_front_page() && is_user_logged_in() ){
    
      		/*adding the following line or giving an option for pages.*/
      		if(is_page()) return $content;

    AND
    <a href="#" data-commentid="<?php echo $comment->the_comment_id;?>" title="<?php _e( 'Show/hide comment content', 'bpmh-comments' );?>" class="bpmh-comments-view"><?php _e( 'View comment', 'bp-my-home' );?></a>
    should be
    <a href="#" data-commentid="<?php echo $comment->the_comment_id;?>" title="<?php _e( 'Show/hide comment content', 'bp-my-home' );?>" class="bpmh-comments-view"><?php _e( 'View comment', 'bp-my-home' );?></a>
    Best wishes!

  • The topic ‘55555stars!’ is closed to new replies.