Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4634

    Hi Guys, congratulations on the theme – great work! I would like to remove a) comments field from post and b) comments counter box. Kudos!

    #47025

    Hey,

    in single.php remove following code:

    comments_template( '/includes/comments.php');

    and in includes/loop-index.php remove:

    <span class='comment-container'><?php comments_popup_link("<strong>0</strong> ".__('Comments','avia_framework'), "<strong>1</strong> ".__('Comment' ,'avia_framework'),
    "<strong>%</strong> ".__('Comments','avia_framework'),'comments-link',
    "<strong></strong> ".__('Comments<br/>Off','avia_framework')
    ); ?>
    </span>

    #47026

    Thank you so much for your help!

    #47027

    Glad that I could help you :)

    #47028

    If you want to add this back loo for this code

    //wordpress function that loads the comments template “comments.php”

    ?>

    and add this code in the middle

    comments_template( ‘/includes/comments.php’);

    also do the same for the following

    look for

    <span class=’post-date-comment-container’>

    <span class=’date-container’><span><?php the_time(‘d’) ?></span><?php the_time(‘M’) ?> <?php the_time(‘Y’) ?></span>

    </span>

    and in the space add

    <span class=’comment-container’><?php comments_popup_link(“0 “.__(‘Comments’,’avia_framework’), “1 “.__(‘Comment’ ,’avia_framework’),

    % “.__(‘Comments’,’avia_framework’),’comments-link’,

    “.__(‘Comments
    Off’,’avia_framework’)

    ); ?>

    </span>

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Remove comments box from BrightBox.’ is closed to new replies.