Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #903379

    Hey,

    I want to keep comments but not show the numbers on the blogpost on the main pagehttp://www.elleagnes.se

    What code shall I add?

    Thanks
    Charlotte

    #903491

    Hey Charlotte :)

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    span.comment-container.minor-meta, .text-sep-comment {
        display: none;
    }
    

    Best regards,
    Yigit

    #903507

    Hi Yigit :)

    thanks but I don’t want to delete the comments just the numbers next to it.
    The code deletes the comment text as well, not only the number next to it..

    Charlotte

    #903758

    Hi,

    Try to modify the following files:
    enfold > includes > loop-author.php (line 127)
    enfold > includes > loop-index.php (line 228)
    enfold > includes > loop-search.php (line 50)
    and find this code in each file:

    
    comments_popup_link(  "0 ".__('Comments','avia_framework'),
    	  "1 ".__('Comment' ,'avia_framework'),
    	  "% ".__('Comments','avia_framework'),'comments-link',
    	  "".__('Comments Disabled','avia_framework'));
    

    and replace it with

    comments_popup_link(  __('Comments','avia_framework'),
    	  __('Comment' ,'avia_framework'),
    	  __('Comments','avia_framework'),'comments-link',
    	  "".__('Comments Disabled','avia_framework'));

    Hope this helps :)

    Best regards,
    Nikko

    #903949

    Thanks but seriously there must be an easier way!

    Can’t I just add a code in the Quick CSS that disables the numbers?

    /Charlotte

    #903956

    Hi,
    Sorry, from a css point of view, the numbers and the text is the same element, so css won’t target only the numbers. Please try the solution from Nikko.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.