- This topic has 14 replies, 6 voices, and was last updated 7 years, 2 months ago by
Leo.
-
AuthorPosts
-
February 12, 2016 at 1:12 pm #172381
marcel
Hey!
I need my logo and floating menu on the left ..!———————————————————————————–
LOGO MENU ITEM | MENU ITEM | MENU ITEM
———————————————————————————-THANKS!
February 12, 2016 at 3:22 pm #172400Tom
Lead DeveloperLead DeveloperHi there,
Have you tried setting your Navigation Position to “Float Right” in “Customize > Layout”?
February 13, 2016 at 6:55 am #172511marcel
Hello, if I tried and it works. But it’s not what I need . Precise logo and then the next menu . If the menu and logo float left, no work fine.
Now the code generated is this :first navigation and then logo
<nav id=”site-navigation” class=”main-navigation” itemscope=”itemscope” itemtype=”http://schema.org/SiteNavigationElement”></nav>If I could be like this:
first logo and then navigation
<nav id=”site-navigation” class=”main-navigation” itemscope=”itemscope” itemtype=”http://schema.org/SiteNavigationElement”></nav>
Thank you, your plugin is very useful. I hope to soon have new features that will buy
February 13, 2016 at 6:57 am #172512marcel
first navigation and then logo
<nav></nav> <div class="logo"></div>
If I could be like this:
first logo and then navigation<div class="logo"></div> <nav></nav>
February 13, 2016 at 8:49 am #172534Tom
Lead DeveloperLead DeveloperHm, I’m not too sure what you mean. Do you have an example of what you’re trying to do?
February 13, 2016 at 9:12 am #172542marcel
Ok, see this :
February 13, 2016 at 9:13 am #172545Tom
Lead DeveloperLead DeveloperAhh, so you don’t want the menu all the way on the right?
February 13, 2016 at 9:19 am #172546marcel
Sure, why not serve me right, should float to the left next to the logo .I have to leave it like the image I sent
February 13, 2016 at 12:40 pm #172554Tom
Lead DeveloperLead DeveloperGotcha, this should work.
Add this PHP:
add_action( 'after_setup_theme','generate_move_navigation' ); function generate_move_navigation() { remove_action( 'generate_before_header_content', 'generate_add_navigation_float_right', 5 ); add_action( 'generate_after_header_content', 'generate_add_navigation_float_right', 5 ); }
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Then add this CSS:
.nav-float-right .main-navigation { float: none; display: inline-block; } .site-branding, .site-logo { display: inline-block; }
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
February 15, 2016 at 10:36 am #172911marcel
Good ! work ! only one change for me :
.site-branding, .site-logo { display: inline-table; }
Thanks man!
Marcel
February 15, 2016 at 10:44 am #172921Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
March 18, 2016 at 10:51 pm #180229Joona
Thanks, this was helpful for me too.
March 19, 2016 at 10:36 am #180290Tom
Lead DeveloperLead DeveloperGreat! 🙂
January 29, 2018 at 11:43 am #482813Stew
Hi, I’m attempting the same thing but it’s not working. I’ve cleared cache and hard reloaded the page. I’m using a secondary menu as well as a primary menu. When I put in the PHP and CSS using a child theme my logo doesn’t go to the left of the primary menu on the left.
As it currently sits my logo is in the center with primary menu floated left, secondary menu floated right. I attempt to set the primary menu to float right and the menu just goes under the secondary menu. I really want my logo to the left with the primary menu next to it with my secondary menu floated right.
January 29, 2018 at 2:46 pm #482992Leo
StaffCustomer SupportHi there,
Can you provide a link to your site?
You can open a new topic and use the private URL field if it helps.
Just link us back here 🙂
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.