Forum Replies Created
-
AuthorPosts
-
vanchaParticipant
As an update for this question, to people who might also be looking for it, the following code can be placed inside the themes functions.php, when you have polylang installed.
//makes subheadline show up in polylang string translator
if(is_plugin_active( ‘polylang/polylang.php’ ) ) {
if(function_exists(‘catchresponsive_get_theme_options’)) {
$options = catchresponsive_get_theme_options();
if($options[‘featured_content_subheadline’]) {
pll_register_string(‘dedrait_subheadline_’, $options[‘featured_content_subheadline’]);
}
}
}
It checks to see if polylang is enabled, and replaces the featured_content_subheadline with what you set it to be in the polylang string translator.
It might not be the best solution but it works for me 🙂vanchaParticipantAnyone has an update on this? I really need it fixed, and i can’t figure out how.
vanchaParticipantMy apologies for the late response, but yes. That is exactly what i mean. Since the promotional headline is something that is supposed to entice users, it is important for it to be translated when a user selects a certain language for the website.
Just as the site subtitle, for example when your slogan is “Quality assured”, but you only have the option to display it is “kwaliteit gegarandeerd”, it says nothing for people who aren’t dutch.Greetings,
Tjipke van der Heide
vanchaParticipantThanks for the suggestion, but the thing i meant, but probably could have worded a bit better, is that yes, you can insert text in any language, but only any ONE language. What happens to the promotional headlines if you switch to another language? Where can i change what needs to be displayed then?
vanchaParticipantAlright 🙂
It seems that the theme offers a couple of features, first of all, under site-identity in the customizer, theres the ability to add a site sub title. That subtitle is fixed for any language (the website is in dutch, german and english). I haven’t found a way to make the site’s subtitle dependent on the language.
Then, under ” Promotion Headline Options “, theres the ability to add the promotional headline, promotional subheadline, and a promotional headline button text, all in a fixed language. I was thinking maybe it would be easier if there could be some input fields for those fields for every installed language?
Just a suggestion though, if there already is a way to achieve this that i just overlooked, please share it.
Greetings,
Tjipke
-
AuthorPosts