• Resolved thesally

    (@thesally)


    Hello everyone. I have a question, namely, how can I remove the on in the middle of the ”Latest comments” block, for example Joen on Focus. I would like to change it so that Joe replies to Focus, but I don’t know how to change or replace the on in the middle with replies to. Can someone help me? I would be very grateful for any help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • threadi

    (@threadi)

    I just had a look and unfortunately I can’t find a way to change the word. The option is simply missing. Unfortunately you can’t hide it using CSS either, as it isn’t in its own HTML element.

    My recommendation would be to submit this as a feature request to the Gutenberg team: https://github.com/WordPress/gutenberg/issues

    kuckovic

    (@kuckovic)

    @thesally

    This is a longshot – but it has worked before.
    You can use a plugin like “LocoTranslate” – and using the “String translation” function in the plugin, you should be able to search for the word “on” – and then you can replace it with an empty string (or a dash, or whatever you need).

    / AK

    Thread Starter thesally

    (@thesally)

    I finally found it after a long, long, intensive search. It was actually very easy to find when you look at it that way, but with all the files it was very difficult to find where to start looking. I found it at

    / wp-includes / blocks / latest-comments.php on line 102

    ^^. Hopefully I was able to help someone who is also looking for it or wants to edit it without having to download / install an extra plugin ;).

    threadi

    (@threadi)

    Do you mean that you have customized a WordPress core file to fulfill your wish? Bad idea. The file will be overwritten with the next update. And it’s difficult to give you help if you customize core files.

    Thread Starter thesally

    (@thesally)

    There is no other way, downloading a plugin specifically for this is not the point, and it is also the only thing I changed in the core file. WordPress should handle this in such a way that you can set or change it in WordPress itself without having to go straight into the core file.

    threadi

    (@threadi)

    So that WordPress or developers who can take care of it know about it, you would have to follow the link I wrote above to the Gutenberg team. There you would have to express your wish in an issue. Only then can someone change the corresponding code so that you have a chance to implement your request. The path you have now taken is strongly discouraged.

    kuckovic

    (@kuckovic)

    I strongly agree with @threadi here.
    Never make changes in the core-files.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.