Tagged: footer page
-
AuthorPosts
-
August 1, 2019 at 7:02 pm #1123968
Hello, I add the following code to footer.php
if(function_exists('pll_current_language')) { $slug = pll_current_language('slug'); $post = get_post( pll_get_post($post->ID, $slug) ); }
But is not working, can you tell me exactly where to add it
August 2, 2019 at 7:58 am #1124091Hey Melanie,
What is the code supposed to do and where did you find it?
Best regards,
RikardAugust 4, 2019 at 5:47 am #1124472Please see the link https://kriesi.at/support/topic/footer-67/#post-968090
August 5, 2019 at 9:20 pm #1124905Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
BasilisAugust 13, 2019 at 5:25 am #1127060any news?
August 16, 2019 at 7:10 pm #1128333Hi,
Where is the access we requested?
Best regards,
BasilisAugust 16, 2019 at 7:43 pm #1128345This reply has been marked as private.August 18, 2019 at 11:00 am #1128610Hi mela1989,
Can you please share credentials in private too?
Best regards,
VictoriaAugust 19, 2019 at 4:31 pm #1128949This reply has been marked as private.August 21, 2019 at 3:44 am #1129398Hi,
Thank you for the update.
You can add this snippet in the functions.php file to get the translation and use it as the footer page.
function ava_before_page_in_footer_compile_polylang_mod($post, $id) { if(function_exists('pll_current_language')) { $slug = pll_current_language('slug'); $post = get_post( pll_get_post($post->ID, $slug) ); } } add_action('ava_before_page_in_footer_compile', 'ava_before_page_in_footer_compile_polylang_mod', 10, 2);
Best regards,
IsmaelAugust 21, 2019 at 4:47 pm #1129629This reply has been marked as private.August 22, 2019 at 3:05 am #1129820Hi,
That’s the action priority and the number of variables exposed in the callback function “ava_before_page_in_footer_compile_polylang_mod”. Check the parameters in the documentation.
// https://developer.wordpress.org/reference/functions/add_action/
Thanks for the update.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.