How to add additional theme strings to strings-translation setting?
-
Hi again,
I’m working on a theme that has a couple of strings that do not show by default in Polylang’s language > settings > strings translation.
That’s the Catch Base theme and I already opened a support request there (https://catchthemes.com/support-forum/topic/polylang-translating-featured-content-title-and-description/), where they suggested adding a wpml-config.xml in the theme folder and add some code to the theme functions.php, which I both added to the Catch Base child theme folder:
public_html/wp-content/themes/catch-base-child/wpml-config.xml:
<wpml-config> <admin-texts> <key name="catchbase_options"> <key name="featured_content_headline"/> <key name="featured_content_subheadline"/> </key> </admin-texts> </wpml-config>
public_html/wp-content/themes/catch-base-child/functions.php:
function catchbase_wpml_invalidcache() { delete_transient( 'catchbase_featured_content' ); } add_action( 'after_setup_theme', 'catchbase_wpml_invalidcache' );
But this didn’t work. It does not let me see those additional strings text fields in settings > language > string translation and so the Catch Base devs suggested getting in touch with you.
Is there some step I am missing?
Again this is the thread we’ve been discussing the isssue at:
Thanks a lot for your support!
Cheers.
- The topic ‘How to add additional theme strings to strings-translation setting?’ is closed to new replies.