• Hi. How can I remove the “Leave a comment” text from the sub-title of each post? I don’t have any comments or discussion possibilities enabled, so I would like to take that away.

    Here is a link to my site in progress: https://runninghigh.wordpress.com/.

    Thanks for your help!

    Bruno

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think the following should work.
    Go to Appearance > Customize > Additional CSS. Write the following snippet below the comment block (wrapped with /* … */)

    
    .entry-meta span.sep, .entry-meta .comments-link {
        display: none;
    }
    

    Let me me know if this helps.

    Thread Starter brunoschull

    (@brunoschull)

    Hi Subrata,

    Thanks for your reply! My understanding is that to edit CSS I have to buy WordPress Preium. I’m not against that, but I thought I would try other options first. Also, I seem to remember that in the past I was able to just upgrade the theme to custom? Could that be true? In any case, I’m happy to upgrade if necessary, but I would like to try first with the free options.

    Do you think there is a way to remove the Leave a comment words without upgrading?

    OK thanks again,

    Bruno

    I believe you should always be able to customize a bit of things (may be not all). In order to override some CSS rules, you may create a separate CSS file in your child theme’s root folder say customize.css and then enqueue it in your function.php (which should also reside in tour child theme’s root).

    Your CSS (customize.css):

    
    .entry-meta span.sep, .entry-meta .comments-link {
        display: none !important;
    }
    

    Your functions.php:

    
    function custom_resource() {
      wp_enqueue_style('style', get_stylesheet_uri(), array(), mt_rand(), 'all');
    }
    
    add_action('wp_enqueue_scripts', 'custom_resource');
    

    Now go to the browser and please refresh the page to see if this works.

    Let me know if this helps you.

    Hi @brunoschull!

    It looks like your site is hosted on WordPress.com, which means you would need an upgrade to add Custom CSS as you initially described (you also won’t edit a child theme on .com)

    I didn’t see any comment links on your site – if you’re still seeing them on a post that has comments disabled, put a post on the .com forums at https://en.forums.wordpress.com/forum/support, with a link to the post that’s giving you trouble ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Leave A Comment from post sub-title’ is closed to new replies.