Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
Thanks!
Just as an update, I tried moving the echo command inside of the
<head></head>
tag which fixed the issue on mobile but ended up breaking the desktop site.- This reply was modified 7 years, 8 months ago by bohn54.
Ismael,
Thanks for the quick response!
Here are a couple screenshots of the code.
Here is before I added the code.
And this is after
And here is the code for the new header
<?php if ( !defined( 'ABSPATH' ) ) { die(); } global $avia_config; $style = $avia_config[ 'box_class' ]; $responsive = avia_get_option( 'responsive_active' ) != "disabled" ? "responsive" : "fixed_layout"; $blank = isset( $avia_config[ 'template' ] ) ? $avia_config[ 'template' ] : ""; $av_lightbox = avia_get_option( 'lightbox_active' ) != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox'; $preloader = avia_get_option( 'preloader' ) == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled'; $sidebar_styling = avia_get_option( 'sidebar_styling' ); $filterable_classes = avia_header_class_filter( avia_header_class_string() ); ?> <!DOCTYPE html> <html <?php language_attributes(); ?> class=" <?php echo "html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes ?> "> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=Om5o09g53k"> <link rel="icon" type="image/png" href="/favicon-32x32.png?v=Om5o09g53k" sizes="32x32"> <link rel="icon" type="image/png" href="/favicon-16x16.png?v=Om5o09g53k" sizes="16x16"> <link rel="manifest" href="/manifest.json?v=Om5o09g53k"> <link rel="mask-icon" href="/safari-pinned-tab.svg?v=Om5o09g53k" color="#5bbad5"> <link rel="shortcut icon" href="/favicon.ico?v=Om5o09g53k"> <meta name="apple-mobile-web-app-title" content="GracePoint"> <meta name="application-name" content="GracePoint"> <meta name="theme-color" content="#212a2f"> <?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(); } ?> <!-- mobile setting --> <?php if ( 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> <?php flush(); ?> <body id="top" <?php body_class($style. " ".$avia_config[ 'font_stack']. " ".$blank. " ".$sidebar_styling); avia_markup_helper(array( 'context'=> 'body')); ?>> <?php if("av-preloader-active av-preloader-enabled" === $preloader) { echo avia_preload_screen(); } ?> <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' class='all_colors' data-scroll-offset='<?php echo avia_header_setting(' header_scroll_offset '); ?>'> <?php if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container']; do_action('ava_after_main_container'); echo do_shortcode("[av_submenu which_menu='center' menu='Main Menu' position='center' color='alternate_color' sticky='true' mobile='disabled' mobile_submenu=''][av_submenu_item title='Menu Item 1'][av_submenu_item title='Menu Item 2'] [/av_submenu]"); ?>
- This reply was modified 7 years, 8 months ago by bohn54.
Sure thing.
Hey, thanks for this! I’ve been trying for days to override that default template and this solved it.
I have run into a rather curious problem, though. It seems that the page content is being pushed below the pop-out navigation on iPhone rather than behind. This only happens on pages where I add my echo shortcode php statement to add a secondary menu.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)