Home › Forums › Support › Few issues since GP update – mobile menu, language switchers, page too long
- This topic has 13 replies, 3 voices, and was last updated 5 years, 10 months ago by Tom.
-
AuthorPosts
-
June 5, 2018 at 2:59 pm #592695Marie Odile
Hi,
I am using the following combination of plugins :
– Elementor Pro
– WPML
– GP Premium
Somehow since last update I have 3 main issues on this website : http://www.bougieetsenteur.com
1) Mobile Menu is at the bottom of the page
2) WPML Language Switcher disappeard : I can still see it on a staging server but not on the production site. IT should be on the top right corner as you can see it here :
https://www.staging1.bougieetsenteur.com/
login:bougieet_staging
password: siteground!test01
but on the production environement the switchers are not there http://www.bougieetsenteur.com
3) Site too long : Somehow you can scroll down way further than the content of the site while before this wasn’t happening.Can you please help ?
Thanks in advance,
JesusJune 5, 2018 at 5:26 pm #592732LeoStaffCustomer SupportHi there,
Can you first confirm that you are using the latest GP premium plugin 1.6.2?
Let me know π
June 5, 2018 at 6:47 pm #592752Marie OdileHi,
I am using :
Theme : GeneratePress Version 2.1.2 with a child Theme
Plugin : GP Premium Version 1.6.2
Thank you!June 5, 2018 at 9:10 pm #592795LeoStaffCustomer SupportHmm can you first try #1 here to eliminate any plugin conflicts?
https://docs.generatepress.com/article/debugging-tips/Also switch to the parents theme to make sure that nothing in the child theme is causing the issues.
Let me know π
June 6, 2018 at 2:30 am #592911Marie OdileIF I switch to the default theme everything is working fine but I have not change anything in the child theme.
The content of the child theme is the following :
functions.php :
….
/*ajouter WPML widget*/
add_action( ‘generate_inside_navigation’,’tu_insert_into_navigation’ );
function tu_insert_into_navigation()
{ ?><?php do_action( ‘wpml_add_language_selector’ ); ?><?php }
….
I have created the following folderFolder named : wpml/templates/language-switchers/custom-language-swictcher
with 2 files on it :
config.json :
{
“name” : “shortcode language switcher”,
“version”: “1.0.0”,
“settings”: {
“display_flags”: 0,
“display_names_in_native_lang”: 0,
“display_names_in_current_lang”: 0
}
}
and another file template.twig:
{{ code|upper }}I haven’t change anything except updating GeneratePress and WPML.
Can you please help ? IF you need access to a ftp please let me know but I will need to make this post private.
Thank you!June 6, 2018 at 2:33 am #592912Marie OdileThe rest of my functions.php file is :
<?php /** * Generate child theme functions and definitions * * @package Generate */ /* //starting here customization add_filter( 'style_loader_src', 'generate_remove_cssjs_ver', 10, 2 ); add_filter( 'script_loader_src', 'generate_remove_cssjs_ver', 10, 2 ); function generate_remove_cssjs_ver( $src ) { if( strpos( $src, '?ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } */ add_action( 'init', 'generate_disable_wp_emojicons' ); function generate_disable_wp_emojicons() { // all actions related to emojis remove_action( 'admin_print_styles', 'print_emoji_styles' ); remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); } /*add_filter( 'generate_fontawesome_essentials', 'generate_fontawesome_essentials' ); function generate_fontawesome_essentials() { return true; } */ //finishing here customization /*ajouter WPML widget*/ add_action( 'generate_inside_navigation','tu_insert_into_navigation' ); function tu_insert_into_navigation() { ?> <div class="wpml-picker"> <?php do_action( 'wpml_add_language_selector' ); ?> </div> <?php } function logout_redirect_home(){ wp_safe_redirect(home_url()); exit; } add_action('wp_logout', 'logout_redirect_home'); //avoid having to confirm add_action('check_admin_referer', 'logout_without_confirm', 10, 2); function logout_without_confirm($action, $result) { /** * Allow logout without confirmation */ if ($action == "log-out" && !isset($_GET['_wpnonce'])) { $redirect_to = isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : ''; $location = str_replace('&', '&', wp_logout_url($redirect_to));; header("Location: $location"); die; } }
June 6, 2018 at 4:29 am #592971LeoStaffCustomer SupportCan you try a blank child theme here?
https://docs.generatepress.com/article/using-child-theme/#installing-a-child-themeIf not still doesn’t work then disable each function in your child theme and see which one is causing the issue.
June 6, 2018 at 6:01 am #593032Marie Odileit’s weird.
I have delete my child theme after doing a backup in local and upload the new child theme.
No changes.
Seems it might be related to cache but I have try with chrome development tools selecting clear cache and also I have installed a chrome extension for it.
In addition I have deleted all plugins that caches, I have stop any cloudflare or siteground cache tool.
After all of this I still have issues with language swticher not appearing, page too long and mobile menu at the end of the website.Any idea ? I really need to sort it out because until I don’t fix this issue I can’t do any changes on my website because I don’t know if it’s cache or is incompatibility between GeneratePRess+Elementor+WPML
Thanks!June 6, 2018 at 7:10 am #593081Marie OdileHi,
It looks like removing all custom CSS in GeneratePress is working as with the default theme.
Somehow with the updates this code.main-navigation:not(.navigation-stick) { position: relative; z-index: 99; }
is the one making the page too long and also the mobile menu not working. This code was recomended by you a year ago in order to have the Logo stays over the navigation menu. You can check behaviour on the production environement : bougieetsenteur.com
Can you please help ?
Thank you!June 6, 2018 at 9:27 am #593244TomLead DeveloperLead DeveloperTry this instead:
#site-navigation { position: relative; z-index: 99; }
June 6, 2018 at 12:54 pm #593399Marie OdileThanks Tom!
Just one more issue : Full logo is not clickable only the bottom part of it.Finally I was reviewing the code of my functions.php and I don’t know what is this code for :
add_action( ‘init’, ‘generate_disable_wp_emojicons’ );
function generate_disable_wp_emojicons()
{
// all actions related to emojis
remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ );
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );
remove_filter( ‘wp_mail’, ‘wp_staticize_emoji_for_email’ );
remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ );
remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ );
}Any idea ? Should I keep it ?
Thank you!June 6, 2018 at 5:11 pm #593519TomLead DeveloperLead DeveloperTry adding this as well:
.main-navigation .navigation-logo img { z-index: 9999; }
That code removes emojis from your site, which are added by WordPress.
June 7, 2018 at 12:56 am #593751Marie OdileThanks a lot!!!
June 7, 2018 at 7:50 am #594124TomLead DeveloperLead DeveloperYou’re welcome π
-
AuthorPosts
- You must be logged in to reply to this topic.