Tagged: mobile menu, update
-
AuthorPosts
-
August 29, 2017 at 7:59 am #845223
updated theme and WP to 4.8.1
In doing so menu has hamburger appearing on full screen and
the mobile menu is not functional on full or mobile screenAugust 29, 2017 at 10:49 am #845270I have tried disabling all plugins, problem still exists
August 30, 2017 at 5:00 pm #845865Hi mobi4you,
If you have a header.php file in your child theme you need to replace it with the fresh one from the parent theme and then do whatever modifications you had there. If you do not have any customizations in that file, just delete it from the child theme and the one from parent theme will work.
If you need further assistance please let us know.
Best regards,
VictoriaAugust 31, 2017 at 1:11 am #846033This reply has been marked as private.August 31, 2017 at 1:26 am #846043I tried replacing it , no success, got a page load error
I also tired renaming it in the child theme — got the same problem as before with the mobile menu not working and the hambuger appearing as well as the normal nav bar on desktopEverything down to <!– mobile setting –> is identical in the child theme and the new enfold
Here is a copy of the child theme header.php
<?php
global $avia_config;$style = $avia_config[‘box_class’];
$responsive = avia_get_option(‘responsive_layout’,’responsive’);
$blank = isset($avia_config[‘template’]) ? $avia_config[‘template’] : “”;
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class=”<?php echo ” html_{$style} “.$responsive.” “.avia_header_class_string();?> “>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<link href=’http://fonts.googleapis.com/css?family=Allura’ rel=’stylesheet’ type=’text/css’><script type=”text/javascript” src=”//use.typekit.net/mhr6cnn.js”></script>
<script type=”text/javascript”>try{Typekit.load();}catch(e){}</script>
<!– page title, displayed in your browser bar –>
<title><?php if(function_exists(‘avia_set_title_tag’)) { echo avia_set_title_tag(); } ?></title><?php
/*
* outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
* located in framework/php/function-set-avia-frontend.php
*/
if (function_exists(‘avia_set_follow’)) { echo avia_set_follow(); }/*
* outputs a favicon if defined
*/
if (function_exists(‘avia_favicon’)) { echo avia_favicon(avia_get_option(‘favicon’)); }
?><!– add feeds, pingback and stuff–>
<link rel=”profile” href=”http://gmpg.org/xfn/11″ />
<link rel=”alternate” type=”application/rss+xml” title=”<?php echo get_bloginfo(‘name’); ?> RSS2 Feed” href=”<?php avia_option(‘feedburner’,get_bloginfo(‘rss2_url’)); ?>” />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” /><!– mobile setting –>
<?phpif( strpos($responsive, ‘responsive’) !== false ) echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>’;
?><!– Scripts/CSS and wp_head hook –>
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/wp_head();
?>
</head>
<body id=”top” <?php body_class($style.” “.$avia_config[‘font_stack’].” “.$blank); avia_markup_helper(array(‘context’ => ‘body’)); ?>>
<div id=’wrap_all’>
<?php
if(!$blank) //blank templates dont display header nor footer
{
//fetch the template file that holds the main menu, located in includes/helper-menu-main.php
get_template_part( ‘includes/helper’, ‘main-menu’ );} ?>
<div id=’main’ data-scroll-offset='<?php echo avia_header_setting(‘header_scroll_offset’); ?>’>
<?php do_action(‘ava_after_main_container’); ?>
August 31, 2017 at 5:21 pm #846407Hi mobi4you,
You need to update a helper-main-menu as well. I did not see , you had it there at first. What customizations are you having in those files?
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.