-
AuthorPosts
-
July 9, 2018 at 6:17 pm #983304
Hello, I’m having issues with Polylang when “Select a page as footer (no socket)” is set. I’ve created all the extra pages and menu’s and also added the extra code in footer.php, found here after the line:
$footer_widget_setting = ! empty( $footer ) ? $footer : $footer_options;
and above the line:
if( ! $blank && in_array( $footer_widget_setting, array( 'page_in_footer_socket', 'page_in_footer' ) ) )
…but I can’t get it to work. If this location is not right, please tell me, I prefer changing the footer.php myself. Could you please take a look and help me? Credentials below, thank you very much!BTW, the default language is ENG and the site is live, all other languages are drafts, but the only other ‘live’ page/menu with the Dutch language is the Events NL and Footer NL page. I thought you would need at least one other language page for debugging, so here you go :-)
-
This topic was modified 7 years, 5 months ago by
Moregraphics.
July 11, 2018 at 1:07 am #983910Hey Moregraphics,
Thank you for using Enfold.
You should add the code right below this line.
$post = get_post( avia_get_option( 'footer_page', 0 ) );Or replace it with…
$post = get_post( avia_get_option( 'footer_page', 0 ) ); if(function_exists('pll_current_language')) { $slug = pll_current_language('slug'); $post = get_post( pll_get_post($post->ID, $slug) ); }Best regards,
IsmaelJuly 11, 2018 at 9:44 am #984098Thank you Ismael, now it’s working! It’s not around LINE 55 as mentioned in this post here but it’s LINE 60… hence the confusion.
Love the theme btw!July 11, 2018 at 9:48 am #984100Hi,
Glad Ismael could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)Best regards,
Yigit -
This topic was modified 7 years, 5 months ago by
-
AuthorPosts
- The topic ‘Select page as footer and Polylang not working’ is closed to new replies.
