Plugin is Translating WordPress Defined User Names

[ad_1]

Update:

We’ve learned that this issue may be theme related, not plugin related. In our case, we’re using Avada. The affected Avada file is:

/wp-content/themes/avada/templates/author-info.php

Specifically, Line 45:

( Avada()->settings->get( 'disable_date_rich_snippet_pages' ) && Avada()->settings->get( 'disable_rich_snippet_author' ) ) ? '<span class="fn">' . esc_attr( $author_name ) . '</span>' : esc_attr( $author_name )

We need to find a way to add “notranslate” to <span class="fn"> to obtain: <span class="fn notranslate">

The above file helps define the metadata contained inside our blog posts.

Have you dealt with this before? Is there a JS code you can share to accomplish the above?

Thank you!

Plugin Author
edo888

(@edo888)

Hi,

You should be able to create a child theme and simply add it manually, so future updates do not revert the change. You can consult your theme developer for details.

If that is not an option you can do it via javascript, something like:

jQuery('span.fn').addClass('notranslate');

Thanks! 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer