Move menu
-
I was wondering if there was a custom CSS code I could use to move the menu to under the header instead of above it? My website is http://www.swallowdaleguesthouse.ca. Thank you in advance!
Kim
-
Dear Kim,
you will need to edit the “header.php”. Please search there for the following code (it is located just at the end of the file):
<?php if ( is_home() || is_front_page() ) { ?> <?php if ( get_header_image() != '' && $naturespace_options_db['naturespace_display_header_image'] != 'Everywhere except Homepage' ) { ?> <div class="header-image"> <img class="header-img" src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" /> <div class="header-image-container"> <div class="header-image-text-wrapper"> <div class="header-image-text"> <?php if ( $naturespace_options_db['naturespace_header_image_headline'] != '' ) { ?> <p class="header-image-headline"><?php echo esc_attr($naturespace_options_db['naturespace_header_image_headline']); ?></p> <?php } if ( $naturespace_options_db['naturespace_header_image_link_url'] != '' && $naturespace_options_db['naturespace_header_image_link_text'] != '' ) { ?> <p class="header-image-link-wrapper"><a class="header-image-link" href="<?php echo esc_url($naturespace_options_db['naturespace_header_image_link_url']); ?>"><?php echo esc_attr($naturespace_options_db['naturespace_header_image_link_text']); ?></a></p> <?php } ?> </div> </div> </div> </div> <?php } ?> <?php } else { ?> <?php if ( get_header_image() != '' && $naturespace_options_db['naturespace_display_header_image'] != 'Only on Homepage' ) { ?> <div class="header-image"> <img class="header-img" src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" /> </div> <?php }} ?>and move it just above this element:
<div class="header-content-wrapper">Best regards,
Tomas TomanThank you Tomas for your speedy reply! Will I need to start over and install a child theme to do this?
You are welcome! If you modify a theme directly and it is updated, then your modifications may be lost. To avoid overwriting your customizations once the theme is updated, I recommend you to create a child theme.
Best regards,
Tomas Toman
The topic ‘Move menu’ is closed to new replies.
