• Resolved Halvformat

    (@halvformat)


    How can I change the text “Leave a comment” above my posts? I want to change it to another language than English. The same question about “Comments are closed”. Propably in the same PHP-file perhaps!?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • It’s probably in the single.php file of your theme. That is the template for single posts.

    Alwyn Botha

    (@123milliseconds)

    Search for

    Leave a comment

    using your FTP program; start at the root directory of your website

    Is there a way to search for a string within a file using an FTP program? I don’t think I can do that with mine but if you have a good HTML editing program you should be able to do it with that.

    There is no point in starting at the root directory. It has to be in the active theme’s folder.

    Thread Starter Halvformat

    (@halvformat)

    With FileZilla, it looks like you can’t search for a string in a directory or folder, only single files by opening the file (View/Edit), and in “Edit” click “Search for…”. I still haven’t figured out my original problem…

    What is Mystique R2? Can you give me a link to the theme? I have latest Mystique theme, but want to make sure I am looking at same files.

    The answer is simple. You have to locate that text and change it.

    “Comments are closed”

    line 217 comments.php
    <p class="error"><?php _e("Comments are closed.","mystique"); ?></p>

    Change it to whatever you like.

    I cannot duplicate any text that says “Leave a comment” above the posts. I grepped the entire theme directory without finding the phrase. That’s why I asked about the theme name “Mystique R2”.

    Thread Starter Halvformat

    (@halvformat)

    I found the code that needed to be changed in “Themes/lib/core.php”. In the middle of the page I changed “Leave a Comment” to what I wanted, and it worked.

    Hi CJ. Thanks for the info, I’ll try it in a minute. The Mystique R2 is the Mystique 2.4.2 with a little upgrade done to it, and can be found (not for download here) on the Authors page:

    https://www.namase.com/wordpress-tips-and-tricks/mystique-theme-modifications/modified-mystique-theme-mystiquer2.shtml/comment-page-1#comment-544

    Thread Starter Halvformat

    (@halvformat)

    “themes/MYSTIQUER2/lib/core.php” I meant… ??

    Thread Starter Halvformat

    (@halvformat)

    …I found the “Comments are Closed” in comments.php
    <p class=”error”><?php _e(“Comments are closed.”,”mystique”); ?></p>
    is in the 3rd line from the bottom in MystiqueR2. A little different positioning than in Mystique.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘"Mystique R2" Change the text "Leave a comment"’ is closed to new replies.