Need to fix undefined constant on PHP

Hi there,
An error text appeared on our website. It looks like this:

I looked into this part of PHP on editor and found this part:

I didnt write this code, but maybe one of my colleague did. Im not sure what this code do but can you tell me If you see some error and how can I fix it? I have to admit Im not exactly “code persone” .

Thanks very much.
Tereza from Než zazvoní

Hey Tereza,

You’re colleague’s code is not copied from the parent theme. The Text Domain in our parent theme has no backticks in the title line. Yours does.

Please have your developer change backticks to single quotes.

Please note that we do not provide support for custom codes including the ones we post here in the forum. If the issue persists, please kindly ask your colleague to fix the issue with the custom code.

It’s also recommended not to show warnings of a live site. You can disable warnings following the instruction in the debug article by WordPress here https://wordpress.org/support/article/debugging-in-wordpress/

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.