NooTheme Premium WordPress Theme › Forums › Palazzo › Footer does not get translated with WPML.
- This topic has 17 replies, 4 voices, and was last updated 5 years ago by tinhbeng.
-
AuthorPosts
-
5 years, 2 months ago #1078930
Hi!
I'm using Palazzo theme for a real estate site with WPML plugin. The issue I get stuck is that for some reason I cannot choose different footers for the languages I'm using (or at least they do not get translated in the front end part of site). In pages I can solve the problem by choosing the proper footer, but in the post categories the footer stays the same all the time. Footer parts are translated in the WPML admin part.
Regards!
5 years, 2 months ago #1078936Also features and amenities are shown as translated in WPML but only the original English is shown on site.
5 years, 2 months ago #1079148Hi.
Thank you for contacting us.
Please give us your site URL, admin and FTP account. We will help you check that issue.
Thanks.
5 years, 2 months ago #1079259This reply has been marked as private.5 years, 2 months ago #1079377Hi,
I can't login your site.
Please check account infor again.
Best regards,
tb.
5 years, 2 months ago #1079496Hi,
the credentials work now.
Please check again.
Regards!
5 years, 2 months ago #1079588Hi,
I still can't login your site.
You can follow this topic:
https://wpml.org/forums/topic/problem-with-footer-blocks-in-sofani-theme-yolotheme/#post-1462497
- Replace:
yolo_footer => noo_footer
yolo_sofani_options => noo_palazzo_options
Best regards,
tb.
5 years, 2 months ago #1079590This reply has been marked as private.5 years, 2 months ago #1079591This reply has been marked as private.5 years, 2 months ago #1079592Also - what about that:
Also features and amenities are shown as translated in WPML but only the original English is shown on site.5 years, 1 month ago #1079789Hi,
can I get support on the described issues?
Regadrs
5 years, 1 month ago #1080141Hi again.
I have added the code from the WPML forum to help you fix that issue. Now the footer content will to another footer for each language as you select.
Please check it again.
Thanks.
5 years, 1 month ago #1080304Hi,
on the properties pages we still see the English footer only.
Checked into the WPML String translation - all seems to be translated. Also there is Bulgarian language version of the footer. On the homepage footer is displayed as it should be, but I've selected that from the page admin part.5 years, 1 month ago #1080341Ok, the problem has been solved!.
Here are the steps I did:
- You go to WPML -> Settings -> Custom XML Configuration and add this XML code:
<wpml-config>
<admin-texts>
<key name="noo_palazzo_options">
<key name="footer"/></key>
</admin-texts>
<custom-fields>
<custom-field action="copy">noo_footer</custom-field>
</custom-fields>
</wpml-config>
- Add this function to the functions.php
add_filter(
'get_post_metadata'
,
'noo_footer_cf_translate'
, 10, 4 );
function
noo_footer_cf_translate(
$return
,
$object_id
,
$meta_key
,
$single
) {
if
(
$meta_key
==
'yolo_footer'
) {
global
$wpdb
;
$value
=
$wpdb
->get_var(
$wpdb
->prepare(
"SELECT meta_value FROM
$wpdb
->postmeta
WHERE meta_key =
'noo_footer'
AND post_id =
'%d'
",
$object_id
) );
$return
= apply_filters(
'wpml_object_id'
,
$value
,
'noo_footer'
, true );
}
return
$return
;
}
- Go to WPML -> String Translate -> find this field "admin_texts_noo_palazzo_options" and translate Footer ID respectively.
Best regards,
tb.
5 years, 1 month ago #1080507Thank you very much!
5 years, 1 month ago #1080534
AnonymousInactiveTopics: 0
Posts: 87Thanks for your feedback.
If you have any questions related to our theme, don't hesitate to ask us. We will try to help you as soon as possible.
Thank you.
NooTheme
5 years ago #1081125Hi, the footer is still not translated in the properties section - both single property and property listings.
5 years ago #1081213Hi,
Please send me a screenshot to clarify.
Best regards,
tb.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.