• Resolved moonbug

    (@moonbug)


    How can I edit the meta-entry so that it only displays the post date and remove the Leave a Comment.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi moonbug

    I am a bit confused about your question.
    Do you want to remove comment option in your post or something else??
    Would you please explain your problem in much detail.

    Best Regards!!!

    Hello,

    Try

    .comments-link {display: none;}

    Thread Starter moonbug

    (@moonbug)

    Where do I enter .comments-link {display: none;}, style.css?
    I tried no effect.

    On the default start up page listing the posts, it shows the date and Leave a Comment on the left side. I want the comment remove.

    I tried looking for the detailed twentysixteen_entry_meta(); but I cannot find this function in functions.php, where is it?

    Hi moonbug

    Try adding this Custom CSS code to style.css.

    span.comments-link {
        display: none!important;
    }

    However I strongly recommended you to create child theme and customize files in child theme.
    Note: Please customize files of child theme, so your changes will not overwrite on theme update.

    Thank You!!!

    Thread Starter moonbug

    (@moonbug)

    span.comments-link {display: none!important;}

    removes all meta including the date. I need the date to display.

    Is there a way to use ::first-line?

    That code shouldn’t have done that. Can you post a link to your site?

    Hi moonbug

    As far as I know that code only removes Leave a comment part not the date and etc.
    It would be better if you post your site URL.Cause it will be easy for us to debug.

    Best Regards!!

    Thread Starter moonbug

    (@moonbug)

    Where can I find the twentysixteen_entry_meta() if I want to edit it?

    Thread Starter moonbug

    (@moonbug)

    Found twentysixteen_entry_meta() in template-tags.php

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove Leave a Comment From Post’ is closed to new replies.