Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #913013

    I am wanting “Comment 0 /” not to show when there is 0 comments. I want it blank.

    I tried removing the checkmark from “check to display” Blog Post Comment Count in Blog Layout – Enfold Child Theme Options
    but that did not stop the display of the Blog Post Comment Count when displayed in Grid Block Format

    Here is a screenshot from my site http://screenshot.co/#!/da672a23a5 and I have circled in red the area I want to be made invisible

    I have the postslider.php setup in the Child Theme per another posts instructions, and that is working.
    I believe here is the code that I need to modify, but I don’t know how to modify it.

    Starting from line 604

    if($show_meta && !empty($excerpt))
    {
    $meta = “<div class=’slide-meta’>”;
    if ( $commentCount != “0” || comments_open($the_id) && $entry->post_type != ‘portfolio’)
    {
    $link_add = $commentCount === “0” ? “#respond” : “#comments”;
    $text_add = $commentCount === “1” ? __(‘Comment’, ‘avia_framework’ ) : __(‘Comments’, ‘avia_framework’ );

    $meta .= “<div class=’slide-meta-comments’>{$commentCount} {$text_add}</div><div class=’slide-meta-del’>/</div>”;
    }
    $markup = avia_markup_helper(array(‘context’ => ‘entry_time’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup));
    $meta .= “<time class=’slide-meta-time updated’ $markup>” .get_the_time(get_option(‘date_format’), $the_id).”</time>”;
    $meta .= “</div>”;

    if( strpos($blogstyle, ‘elegant-blog’) === false )
    {
    $output .= $meta;
    $meta = “”;
    }
    }

    • This topic was modified 6 years, 2 months ago by kpenner36.
    #913573

    Hey kpenner36,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .comment-container.minor-meta {
        display: none;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #913589

    I did everything you suggested and I made sure to empty my cache before testing each time
    There was no effect at all on any change to the “0 comments”

    #913774

    Hi kpenner36,

    Can you please give a link to that page that you have on the screenshot in the original post?

    Best regards,
    Victoria

    #917257
    #917374

    Hi kpenner36,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .avia-content-slider .slide-meta div.slide-meta-comments,
    .avia-content-slider .slide-meta div.slide-meta-comments + .slide-meta-del {
      display: none;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #917457

    Yes, that worked!

    Thanks

    #917528

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to removing "Comment 0 /" on Grid Blog?’ is closed to new replies.