• Resolved Vekky

    (@vekky)


    I can’t figure out how to remove “Comments off” tag when I turn off check boxes and disallow commenting and ping. I found on the other WP topics that it must be deleted some line in code but I can’t find it in this theme. Thanks in advance for help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Could you provide a link to a page/post with comments off?

    Thread Starter Vekky

    (@vekky)

    https://www.simulus.hr/news/

    But I would like to remove it for the whole web site!

    The reason it shows up is because your translation file doesn’t contain anything as a translation of “Comments off” and WordPress thinks it’s not translated.
    Instead, put

     

    as a translation for it and it will not show up. I think it’s in the Customizr language file, under /wp-content/themes/customizr/lang/{your_language_code}_{your_country_code}.po. If it’s not there it’s in /wp-content/languages/{your_language_code}_{your_country_code}.po. You need Poedit to search in and modify those files and the final results are saved in their .mo counterparts, when you save the .po.

    Alternatively, you could install RTFR and add this search / replace:
    left box:

    <span class=”meta-sep”>|</span>
    <span class=”comments-link”><span>Comments Off</span></span>

    right box:

     

    It is important that you take the contents of the left box from your website’s view source. If you take it from here it has been re-formatted by the WordPress forum escaping function and it will not match the string in your page. Or, if you know how to use regex, make your replacement a regex to make sure you get a match.

    Thread Starter Vekky

    (@vekky)

    Thank you very much! RTFR worked like a charm!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing "Comments off" tag’ is closed to new replies.