Main Menus

Steak House, food and drink theme, is now available on support forum.
GK User
Tue Nov 18, 2014 12:32 pm
At http://www.lifeleaping.com/

1. I created 2 pages and they both show up in the top left, right and footer menus. How do I remove those automatic menus?

2. I couldn't find a way to make the logo just text instead of your image, so I created a quick logo for now, but how can I just make it text instead?

Thanks,
Phil
User avatar
Junior Boarder

GK User
Tue Nov 18, 2014 12:52 pm
1. Update: I see if I create my own menus it will override those menus, but I don't want menus in the top left and footer positions - just want to get rid of them. Thanks.
User avatar
Junior Boarder

GK User
Tue Nov 18, 2014 2:47 pm
Hello,

Please assign your menus in Appearance -> Menus section (create new menus first and assign if you didn't create them yet).
After that, your problem should disappear.

Regarding your second problem, unfortunately there's no option to use text logo in Customize section. You'll have to edit Steakhouse/header.php file and change this fragment:
Code: Select all
<?php if(get_theme_mod('steakhouse_menu_logo', '') == '') : ?>
               <a class="gk-logo gk-logo-small gk-logo-css" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
                  <?php bloginfo( 'name' ); ?>
               </a>
               <?php else : ?>
               <a class="gk-logo gk-logo-small" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
                  <img src="<?php echo get_theme_mod('steakhouse_menu_logo', ''); ?>" alt="<?php bloginfo( 'name' ); ?>" />
               </a>
               <?php endif; ?>

into your text i.e.:
Code: Select all
<h2 class="text-logo">Text logo</h2>


after that, you'll have to add the following code int Steakhouse/css/override.css file:
Code: Select all
.text-logo {
left: 50%;
margin: 0 0 0 -56px;
position: absolute;
top: 10px;
z-index: 1;
}
User avatar
Moderator

GK User
Tue Nov 18, 2014 5:49 pm
1. But what if I want no menu in certain places? Even if I create 1 menu, the other automatic menus are still there. I can 'display: none' with css, but obviously that's not ideal.

2. Okay, thanks.
User avatar
Junior Boarder

GK User
Wed Nov 19, 2014 11:24 am
You're right, we'll change in the next theme update. For now if you want to change it, please edit Steakhouse/footer-frontpage.php and footer.php files and add 'fallback_cb' => false attribute to all wp_nav_menu functions.

I.e. change this fragment:
Code: Select all
<?php wp_nav_menu( array( 'theme_location' => 'footer', 'menu_class' => 'footer-menu' ) ); ?>

into:
Code: Select all
<?php wp_nav_menu( array( 'theme_location' => 'footer', 'menu_class' => 'footer-menu', 'fallback_cb' => false ) ); ?>
User avatar
Moderator


cron