How to move the menu to the top of the page?

Home Forums SKT Black/White Theme Support How to move the menu to the top of the page?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6295
    Gavin McCloyGavin McCloy
    Member
    • Topics: 3
    • Replies: 1
    • Total: 4
    Member since: April 23, 2015

    Hi I would like to move the menu / header to the top of the page, instead of being below the slider, if possible it would be nice to do this via custom CSS so I do not need to edit the theme.

    I did try to move the code within the header.php which did work but then the menu did not display on any of the pages, but would prefer to do it using custom CSS code please.

    if you can help thanks.

    #6336
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Appearance>editor>open header.php file and cut the code from line no. 92 to 111

    this is the code: <div class=”header”>

    <div class=”header-inner”>

    <div class=”logo”>

    <a href=”<?php echo home_url(‘/’); ?>”>

    <?php if( of_get_option( ‘logo’, true ) != ” ) { ; ?>

    <img src=”<?php echo esc_url( of_get_option( ‘logo’, true )); ?>” / >

    <?php } else { ?>

    <h1><?php bloginfo(‘name’); ?></h1>

    <?php } ?>

    </a>

    <p><?php bloginfo(‘description’); ?></p>

    </div><!– logo –>

    <div class=”toggle”>

    <a class=”toggleMenu” href=”#”><?php _e(‘Menu’,’skt-white’); ?></a>

    </div><!– toggle –>

    <div class=”nav”>

    <?php wp_nav_menu( array(‘theme_location’  => ‘primary’) ); ?>

    </div><!– nav –><div class=”clear”></div>

    </div><!– header-inner –>

    </div><!– header –>

    and put this code below the body tag (after line no. 26).<body>

    Regards,

    Shri

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.