Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #165263
    Davinci
    Member
    Post count: 67

    Please, help me.
    How to remove comments here:
    http://prntscr.com/6tz4rn

    #165270
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Theme Options -> General Options -> Disable comments.

    Thanks
    Mohammad

    #165291
    Davinci
    Member
    Post count: 67

    It was already done.

    Problem in blog carousel only.
    http://611858.dizajn.web.hosting-test.net/

    I can hide it here,
    http://prntscr.com/6tzrat

    but the dates of news disapeared too.

    #165294
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    We cant hide comments only here. You need to make some changes here. Please open to edit posts-carousel.php at /dante/swift-framework/page-builder/builder/shortcodes.

    Find this code:-
    $items .= '<div class="post-details">'. sprintf(__('%1$s - %2$s', 'swiftframework'), $post_date, sf_get_comments_number($post->ID)) .'</div>';
    
    Change to:-
    $items .= '<div class="post-details">'. sprintf(__('%1$s', 'swiftframework'),sf_get_comments_number($post->ID)) .'</div>';

    Thanks
    Mohammad

    #165317
    Davinci
    Member
    Post count: 67

    Thank you, but this code delete the date, not the comments 🙂
    http://prntscr.com/6u0kog

    #165322
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You should use this code instead

    
    $items .= '<div class="post-details">'. sprintf(__('%1$s', 'swiftframework'),$post_date) .'</div>';

    -Rui

    #166059
    Davinci
    Member
    Post count: 67

    All is well. Thank you!

    #166066
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. No problem.
    -Rui

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register