WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing "comments are closed" text (10 posts)

  1. judetheobscure
    Member
    Posted 2 years ago #

    I'm trying out mantra theme and I want to remove the "comments are closed" text as I am using wordpress as a fansite, not a blog.
    I've seen a thread: http://wordpress.org/support/topic/how-to-remove-comments-are-closed-text-and-box?replies=2 which says I need to edit comments.php but I can't find the particular line of text he mentions. Can anyone help - I've posted the file contents below.
    -------------------------------------------------------------

    [code moderated - please follow the forum guidelines for posting code]

  2. Japh
    Member
    Posted 2 years ago #

    Hello!

    The fifth line from the bottom of the code you pasted appears to be the culprit:
    <p class="nocomments"><?php _e( 'Comments are closed.', 'mantra' ); ?></p>

    If you replace the "Comments are closed" text with nothing, i.e.
    <p class="nocomments"><?php _e( '', 'mantra' ); ?></p>

    You should be fine! Or you can remove the entire line to also remove the (now) empty paragraph.

    Hope that helps :)

  3. judetheobscure
    Member
    Posted 2 years ago #

    Thank you, that worked perfectly :)

    Apologies for the code posting - hadn't remembered that bit of the guidelines :(

  4. Japh
    Member
    Posted 2 years ago #

    My pleasure, glad it worked for you :)

  5. mapperboy
    Member
    Posted 2 years ago #

    Japh,
    I just did the same edit as you suggested to judetheobscure in the Mantra theme and it worked for the first browse, then after going away from the site and coming back, the text is back. It's not a cache issue with the browser but where else could that text be invoked? I've searched the entire directory of the installation but that's the only place (in comments.php)
    that it was.
    Thanks,
    -Mike

  6. Japh
    Member
    Posted 2 years ago #

    Hi mapperboy, hmmm... that's strange. Are you certain it's not a cache issue? Remembering that caching can occur in your WordPress install if you have a caching plugin, but also in your browser.

    Have you tried clearing your browser cache as well as the plugin cache (if you have one installed)?

  7. mapperboy
    Member
    Posted 2 years ago #

    Japh,
    Got the official solution from the guys at Cryout Creations.
    There's actually a setting in the Theme Settings->Graphics dashboard which is a pull-down with four options for controlling the "Comments are closed." text. The options are Show, Hide in Posts, Hide in Pages, Hide Everywhere.
    Not sure if the previous hard code fixes worked for an older version of the Theme, the one I'm currently using is ver 1.74.
    Something sure is overriding those line edits/removals in comments.php in my installation. Not browser cache, not WordPress site cache. I haven't drilled into it too deep with Firebug yet. I did try to do an element inspect in DW CS5.5 but I couldn't get it to show me the php-echo statements which must be building the page.
    -Cheers

  8. angler80
    Member
    Posted 1 year ago #

    Thanks mapperboy, I would never have found this. Any luck removing the new "Navigation" bar that came with the new 1.9.5.1 update?

  9. mapperboy
    Member
    Posted 1 year ago #

    Hi angler80,
    I haven't upgraded my various WordPress sites to Mantra ver 1.9.5.1 yet.
    What position is this new Navigation bar ? Just below the banner?
    I looked at the 'preview' of 1.9.5.1 on the Cryout Creations site and the rounded upper corner tabs directly below the banner (I think those are what you are referring to) look exactly like the version 1.7.5 that I'm currently using.
    But perhaps there is another nav bar you are referring to?
    Let me know the details and I'll try to help.

  10. Spyro webz
    Member
    Posted 1 year ago #

    Thanks! japh
    it work for me.
    but i have another problem i have create a dynamic page to my theme. but when i am going to write text in it, the text reappear in my theme out of this page. i mean the text came twice in other part of site.
    hope any one help me,,,,,,,,,,

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.