Logo in the TopBar
-
Hey Alex, first I want to let you know, I love your theme! Thanks for the nice work and all the updates! I downloaded it directly from your homepage.
I use your theme on my blog: https://geekmonkey.de. As you can see I made some changes.
Since a few hours i try to put the logo up in the topbar on the left side. this is working so far, … but if I shrink the browser, .. I got a overlay with the topbar menu. So I guess my work-around is not working – haha. For all this I use a Child Theme.
In the css I use this code:
/* Topbar */ #nav-topbar.nav-container { border: 1px solid red; background: #26272b; -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.2),0 1px 0 rgba(255,255,255,0.15); box-shadow: 0 0 0px rgba(0,0,0,0.2),0 0px 0 rgba(255,255,255,0.15); } #top_logo { width: 250px; height: 55px; position: absolute; top: 1px; left: 10px; border: 1px solid blue; }
The red and blue border I just used to check
In the header.php I made this changes:
<?php if ( has_nav_menu('topbar') ): ?> <nav class="nav-container group" id="nav-topbar"> <div id="top_logo"><img src="wp-content/themes/geek/img/top_logo.png"></div> <div class="nav-toggle"><i class="fa fa-bars"></i></div> <div class="nav-text"><!-- put your mobile menu text here --></div> <div class="nav-wrap container"><?php wp_nav_menu(array('theme_location'=>'topbar','menu_class'=>'nav container-inner group','container'=>'','menu_id' => '','fallback_cb'=> false)); ?></div>
Maybe you, or anybody else have an Idea, how to solve this problem.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Logo in the TopBar’ is closed to new replies.