Menu doesn't show after migration from mqtranslate
-
Hello,
i switched from Mqtranslate to qtranslate-X, first i had problem with blank page then i checked error.log saying:
PHP Fatal error: Call to undefined function qtrans_convertURL() in /home/digitalk/public_html/wp-content/themes/compositio/functions.php on line 22
I then removed from functions.php this part of the theme i currently use:
add_filter('wp_nav_menu_items','qtrans_in_nav_function'); function qtrans_in_nav_function ($nav){ $url = get_bloginfo('url'); $url_preg = preg_replace('/\//', '\/', $url); $qtrans_url = qtrans_convertURL($url); $nav = preg_replace('/('.$url_preg.')(\/id)/', $url, $nav); $nav = preg_replace('/('.$url_preg.')/', $qtrans_url, $nav); return $nav; }
Now all seems works well but the menu won’t show https://www.digitalking.it
I tried to delete and create new but no success.The theme in the header.php file is rendered with:
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu' ) ); ?>
Any help or suggestion?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Menu doesn't show after migration from mqtranslate’ is closed to new replies.