Moving my sub menu
-
Hello clever people,
I am new to WP and am learning, slowly, but find myself stuck for the first time so thought that I would ask some experts.
My site is https://www.clockworkeye.co.uk and as you will see my sub menu is in completely the wrong place.
I am trying to move the menu so that it is the same size as the main menu and directly underneath. Though I do understand that the sub menu will be two lines.
I have read the majority of solutions on the forum but am unable to relate to my own child theme.
Here is the code of the child theme Header.php file. I have removed the line spaces for ease of reading but if that is bad then let me know and I will post with spaces:
<?php
// Exit if accessed directly
if( !defined( ‘ABSPATH’ ) ) {
exit;
}
/**
* Header Template
*
*
* @file header.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 – 2014 CyberChimps
* @license license.txt
* @version Release: 1.3
* @filesource wp-content/themes/responsive/header.php
* @link https://codex.www.ads-software.com/Theme_Development#Document_Head_.28header.php.29
* @since available since Release 1.0
*/
?>
<!doctype html>
<!–[if !IE]>
<html class=”no-js non-ie” <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 7 ]>
<html class=”no-js ie7″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 8 ]>
<html class=”no-js ie8″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 9 ]>
<html class=”no-js ie9″ <?php language_attributes(); ?>> <![endif]–>
<!–[if gt IE 9]><!–>
<html class=”no-js” <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<meta name=”p:domain_verify” content=”f559d072bf8b67aefe87f194cfab90b9″/>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”/>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
<link rel=”profile” href=”https://gmpg.org/xfn/11″/>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”/>
<link href=’https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700′ rel=’stylesheet’ type=’text/css’>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php responsive_container(); // before container hook ?>
<div id=”container” class=”hfeed”>
<?php responsive_header(); // before header hook ?>
<div class=”skip-container cf”>
<?php _e( ‘↓ Skip to Main Content’, ‘responsive’ ); ?>
</div><!– .skip-container –>
<div id=”header”>
<?php responsive_header_top(); // before header content hook ?>
<?php if( has_nav_menu( ‘top-menu’, ‘responsive’ ) ) { ?>
<?php wp_nav_menu( array(
‘container’ => ”,
‘fallback_cb’ => false,
‘menu_class’ => ‘top-menu’,
‘theme_location’ => ‘top-menu’
)
);
?>
<?php } ?>
<?php responsive_in_header(); // header hook ?>
<?php if( get_header_image() != ” ) : ?>
<div id=”logo”>
“><img src=”<?php header_image(); ?>” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=”<?php bloginfo( ‘name’ ); ?>”/>
</div><!– end of #logo –>
<?php endif; // header image was removed ?>
<?php if( !get_header_image() ) : ?>
<div id=”logo”>
<span class=”site-name”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></span>
<span class=”site-description”><?php bloginfo( ‘description’ ); ?></span>
</div><!– end of #logo –>
<?php endif; // header image was removed (again) ?>
<?php get_sidebar( ‘top’ ); ?>
<?php wp_nav_menu( array(
‘container’ => ‘div’,
‘container_class’ => ‘main-nav’,
‘fallback_cb’ => ‘responsive_fallback_menu’,
‘theme_location’ => ‘header-menu’
));
?>
<?php if( has_nav_menu( ‘sub-header-menu’, ‘responsive’ ) ) { ?>
<?php wp_nav_menu( array(
‘container’ => ”,
‘menu_class’ => ‘sub-header-menu’,
‘theme_location’ => ‘sub-header-menu’
));
?>
<?php } ?>
<?php responsive_header_bottom(); // after header content hook ?>
</div><!– end of #header –>
<?php responsive_header_end(); // after header container hook ?>
<div class=”clearfix”></div>
<?php if(is_front_page() ) { ?>
<div id=”wrap-full-slider”>
<?php echo do_shortcode(‘[rev_slider Homepage]’); ?>
</div>
<?php } elseif (is_page(‘contact’)) { ?>
<script type=”text/javascript”>
jQuery(window).load(function(){
setTimeout(function(){ jQuery(‘.video-field-new’).fadeOut() }, 13000);
});
jQuery(function() {
jQuery(‘.video-field-new-map’).delay(13000).fadeIn(‘slow’);
});
</script>
<div id=”BodyField”>
<div class=”video-field-new”><iframe width=”670″ height=”377″ src=”//www.youtube.com/embed/utaLMfe6OQo?rel=0&autoplay=1″ frameborder=”0″ allowfullscreen></iframe></div>
<div class=”video-field-new-map”><img width=”670″ height=”377″ src=”/wp-content/themes/responsive-child/images/map.png” /></div>
<iframe style=”display:none;” src=”https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2353.9301638302495!2d-1.9582500000000322!3d53.84410599999998!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x487bee8eec80613f%3A0x9bc2f4b46dfc7d7!2sClockwork+Eye+Video+Productions!5e0!3m2!1sen!2suk!4v1406536425890″ width=”970″ height=”350″ frameborder=”0″ style=”border:0″></iframe>
</div>
<div id=”text-6″ class=”widget-wrapper widget_text”>
<div class=”textwidget”><p>You can also keep in touch with us via the following channels…</p>
<img src=”/wp-content/uploads/2014/05/1398955740_twitter_circle_color.png”>
<img src=”/wp-content/uploads/2014/05/1398955765_facebook_circle_color.png”>
<img src=”/wp-content/uploads/2014/05/1398955785_youtube_circle_color.png”>
<img src=”/wp-content/uploads/2014/05/1398955802_google_circle_color.png”></div>
</div>
<?php } else { } ?>
<?php responsive_wrapper(); // before wrapper container hook ?>
<div id=”wrapper” class=”clearfix”>
<?php responsive_wrapper_top(); // before wrapper content hook ?>
<?php responsive_in_wrapper(); // wrapper hook ?>—————————————————-
Am I looking in the right place? because I can’t find any alignment inf on my submenu anywhere.
Any help greatly appreciated.
Thanks,
Gareth
- The topic ‘Moving my sub menu’ is closed to new replies.