Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add Logo Inside Navigation Bar (before menu)
Tagged: genesis, Logo, navigation
- This topic has 13 replies, 4 voices, and was last updated 9 years, 2 months ago by
Vasilis.
-
AuthorPosts
-
December 29, 2015 at 3:26 am #175037
Vasilis
MemberHello awesome people!!!
I would like to add my logo (text) OR write it with larger fonts just before the menu links inside the Genesis navigation bar.
As far as I understand I would need to create a widget exactly before the menu links inside the navigation bar.
The theme I'm using is custom Genesis Sample.
Could you give me some ideas on this?
The website I want to add it is this => http://theVasilis.com
And I want to add my name "VASILIS STERGIOU" written with larger fonts (same font type) exactly before the menu links.
Thank you very much for your support 🙂
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
December 29, 2015 at 3:41 am #175038Brad Dalton
ParticipantDecember 29, 2015 at 3:59 am #175039Vasilis
MemberThis reply has been marked as private.December 29, 2015 at 6:13 am #175045Susan
ModeratorBrad can't see private replies (only the original poster on the thread - {you} or an administrator or moderator {me} can see private replies).
If you want to contact Brad privately, you should reach out to him on his website: http://wpsites.net/services/wordpress-consulting/
December 29, 2015 at 10:01 pm #175143Vasilis
MemberOk cool thanks for letting me know about this.
Bumping this post.
Anyone can come with a solution about this?
Wish you all happy holidays 🙂
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
December 29, 2015 at 10:07 pm #175146Vasilis
MemberThis reply has been marked as private.December 30, 2015 at 8:53 pm #175252rasor
ParticipantTry this plugin. Nav Menu Images. It's a little old. But still works.
rasor @ WPBasics.org | Buy me a coffee
December 31, 2015 at 1:49 am #175261Vasilis
MemberHey thanks for the suggestion
I checked it out but there are a lot of bugs going on with it so I would prefer a cleaner solution.
Thank you once again.
Any other ideas?
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
December 31, 2015 at 3:59 pm #175297rasor
Participantadd this to functions.php
/* Add Logo to Nav bar*/ add_filter( 'genesis_nav_items', 'ja_logo_to_nav', 10, 2 ); add_filter( 'wp_nav_menu_items', 'ja_logo_to_nav', 10, 2 ); /** * Based on tutorial Follow Icons in Menu * @author Bill Erickson * @link http://www.billerickson.net/genesis-wordpress-nav-menu-content/ * * @param string $menu * @param array $args * @return string */ function ja_logo_to_nav($menu, $args) { $args = (array)$args; if ( 'primary' !== $args['theme_location'] ) return $menu; $logo = '<li id="logoNav"><img src="'.get_bloginfo('stylesheet_directory').'/images/logo.png" /></li> '; return $logo . $menu; }
and this to style.css
/* Add Logo to left of nav bar*/ #logoNav { float: left;} #logoNav img { max-height: 50px; margin-top: 12px; }
Adjust the CSS as required.
It should work. Let me know how it goes.
rasor @ WPBasics.org | Buy me a coffee
January 1, 2016 at 12:44 am #175304Vasilis
MemberOk Rasor!!!
AWESOME!
This did the trick, now needs to move at the same line with the menu links 🙂
I guess that's a CSS trick right?
My best wishes for the new year!
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
January 1, 2016 at 6:55 am #175314rasor
ParticipantDid you add the css I provided above to your style sheet? That should bring in inline.
rasor @ WPBasics.org | Buy me a coffee
January 1, 2016 at 6:59 am #175315Vasilis
MemberYeah , added it already.
Still the logo sits 1 line before the menu links.
Check it here => http://thevasilis.com
Kind regards
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
January 1, 2016 at 8:58 am #175322rasor
ParticipantLooks okay on my computer. Maybe you need to clear you cache.
rasor @ WPBasics.org | Buy me a coffee
January 1, 2016 at 10:30 am #175325Vasilis
MemberOk cool!!!
Thank you very much
Marketing & Business Development Consultant Located in Bangkok, Thailand @ PowerHouse Consulting Group
-
AuthorPosts
- The topic ‘Add Logo Inside Navigation Bar (before menu)’ is closed to new replies.