About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Sridhar – any chance this will work with a Builder Child Theme?
You just need to add one line of code in Builder child theme’s functions.php to enable sidebar support for navigation module.
See “To add sidebar support for Navigation module” at http://www.sridharkatakam.com/frequently-used-ithemes-builder-snippets/
WOW!! Thanks. Your are amazing!!
Perfect!!! Thanks very much! 🙂 The best place for those icons imho.
Result: http://www.jacktummers.nl/blog
using the Simple Social Icons plugim.
hey champ !
would you know how to get the widget outside the “ul.menu-primary-navigation” , instead of inside it?
thanks so much
Here: https://gist.github.com/srikat/6742849
Hi,
I tried the above for the secondary menu but couldn’t get it to work. Could you give me some guidance.
Cheers
Dave
How would the code be different to ONLY show when the dropdown menu is called for?
ie on my developing site, http://commerce.tradiewebsitedesign.com.au/, when the dropdown menu is called for in the 6th media query (mobile), I want the social media icons to appear to the right of the Hamburger navigation ( and I’ll hide header-right ones).
How do I target the dropdown navigation 1?
Thanks!
What plugin/setting/technique are you using for the mobile menu?
Hey Sridhar,
I use Dynamic Website Builder, so I’m just wanting to use the mobile dropdown that creates with it’s responsive media queries.
Works well and easily!!!
Perfect, easy solution. I already had created various sidebars in my functions.php, so I added the new one that way rather than adding another plugin.
OMG this is amazing, thank you
Hi Sridhar,
Thanks for the tutorial, it’s almost giving me what I need. My only problem is that the icons appear below the nav menu items. For
.menu-primary .socialmedia-buttons a {
I changed {float: left} to {float: right}, and the icons moved to the right side of the nav bar, but are still on a row below the nav items. Any idea what may be causing this?Thanks!
Can you provide the URL of site in question?
Hi Sridhar –
I have the same problem as Brandon: my icons appear on a row below the menu items. You can see the problem here: http://www.globetrottinginheels.com
Could you help me figure out how to align them?
TIA and thanks for the tutorial!
whoops – just saw that you added a tutorial to handle this issue specifically, sorry about that.
When I add the code to the functions.php file, the site won’t load. Latest Genesis and Agency Pro – http://omsweetomorganics.com/
Brian,
In the Agency Pro theme, the Primary Navigation menu area is not used in the demo. Are you using the Secondary Navigation Menu? Do you want to add social icons in the Header menu?
Hey Sridhar,
That’s what I’m trying to accomplish. I use the Simple Social Icons plugin that Genesis recommends for Agency Pro.
The navigation is through the widget area called “header right”. I want to add this too to Agency Pro, but I’d like it to be w/ the fixed navigation. What do we need to edit for this to work in Agency Pro?
You can just use the same ‘Header Right’ widget area to add additional widget(s) besides the custom menu, then use CSS to align it/them horizontally on the front-end.
Hey Sridhar, any answer to my earlier question? I’m really keen to know if it is at all possible to place it in the dropdown menu?
Are you looking for something like this?
At 480px: http://i.imgur.com/wJkFmQj.png
At widths lower than 480px: http://i.imgur.com/lhW8g0G.png and when the hamburger icon is tapped, http://i.imgur.com/RtKFrdF.png
It’s for http://s22.web-servers.com.au/~icc
Effectively I plan to put the social media icons that are at the bottom, to the right of the nav bar as well using this tutorial. However, on phones it obviously changes to the hamburger menu, and I don’t want to lose them, so anything that keeps them either in or near the hamburger menu is good 🙂
Thank you so much for this tutorial!!! I created the widget area to put my search bar in. The problem I have is it is not on the right side of the navigation but below. Could you tell me if I missed a step or need to add something? Thanks 🙂
Can you provide the URL of your site?
Did this ever get solved? I’m having same problem.
Hi Sridhar,
Is there a way to add a widgeted area like this one in case of using the Minimum Pro theme?
In Minimum Pro the main navigation is in a custom menu widget displayed in the header right widget. I would like to add there a right floating widgeted area for ‘language flags’, just like you describe here for the social icons.
Hope you can help, thanks in advance!
Just add the HTML for showing flags in a widget below the custom menu widget in Header Right sidebar. Then CSS can be written to position them side by side. If you can provide your site URL after adding the flags widget, I shall advise with the specific code.
Hi Sridhar,
The ‘test URL’ is http://www.webstudio24.fr/wp2
I did as you wrote and managed to position the flags at the right side, but would like to display them next to the navigation links (right).
Thanks again!
Add this CSS:
.site-header .widget-area .widget {
float: left;
}
.site-header .widget-area .widget_qtranslate {
margin-top: 2.5rem;
}
Hi Sridhar,
Thank you for the CSS, the flags are OK with this code. However my navigation links are displayed at the left / in the middle if I apply this, I would prefer them aligned right as well. Do you think that’s possible?
Thanks!
Hey Sridhar,
I’d be curious about getting my simple social icons next to my header nav in the Minimum Pro theme as well.
http://btellock.com/clients/wit/v2/
Thanks!
-B
Add this CSS:
.site-header .widget-area .widget {
float: left;
}
.site-header .widget-area .simple-social-icons {
margin-top: 1.6rem;
float: right;
}
Thanks!
Hello Sridhar. Great tutorial. I have a question – how would you go about placing this before the beginning of nav element, but still within the
My post was chopped off. So I would like to have the widget added before the menu ul but after the div with id nav. Make sense? That way in responsive mode I can get the widget area to appear on top of navigation.
Like this? -> http://i.imgur.com/RfnHpSH.png
More like this: http://tinypic.com/r/mrcmxg/5
Generated HTML structure looks the same. What’s the difference?
In your example, the ul is within the widget area. In my example, the ul is outside the widget area. I need the widget area before the ul so that I can move that section above the navigation in a responsive layout. Make sense?
I was able to create my desired effect by simply moving the position of ob_start();
genesis_register_sidebar( array(
‘id’ => ‘donate_button’,
‘name’ => __( ‘Nav Right’, ‘genesis-sample’ ),
‘description’ => __( ‘This is after .menu in .nav-primary’, ‘genesis-sample’ ),
) );
add_filter( ‘genesis_do_nav’, ‘donate_widget’, 10, 2 );
function donate_widget( $nav_output, $nav ){
genesis_widget_area( ‘donate_button’, array(
‘before’ => ”,
) );
ob_start();
$widget_area = ob_get_clean();
return str_replace( $nav, $nav . $widget_area, $nav_output );
}
But I guess I would be able to work with your version as well. Any solution? Thanks for the time.
I’ve used this tutorial before with no issue. I’m working it up on News Pro Genesis theme, and I can’t get the icons to be even with the navigation: http://testsite.howtorockyourblog.com/
I know I am missing something easy. Any ideas?
Followed your steps very carefully, several times, but I cannot get the buttons to align side-by-side when using Genesis Dynamik. Buttons appear one under the other, with the first button in Nav area. Where exactly does the CSS need to be put within the front-end CSS builder elements, please? I cannot see or find the option within elements to apply CSS to the Social Menu sidebar created with Simple Sidebars.
Many thanks for your help on this
See http://www.sridharkatakam.com/adding-simple-social-icons-navigation-bar-genesis/
I’m using the StudioPress created Simple Social Icons plugins instead for this site, but as in some of the above commentary, nothing I do to style the page keeps the buttons from going under the nav. This happens regardless of whether I choose to add a search form to the nav or not. I assume this is because the Beautiful theme has a default float left for whatever extra content might be added to the nav using the Genesis theme? But not sure. Any thoughts?
Follow http://www.sridharkatakam.com/adding-simple-social-icons-navigation-bar-genesis/
You must have just written that, perfect timing thank you! Completely took care of it.
[…] my previous post on this topic, I showed how a widget area can be added after the last list item in nav bar followed […]
Real cool post, very grateful you quote Dynamik as well. Thanks for your efforts Sridhar
Hey Sridhar! Your articles have SAVED my life many times since I began my WP journey (just a few months ago). So thank you for that!
Now while I followed all these instructions carefully, when I placed a Search Bar and icons from my Simple Social Icons plugin in my new widget area (thanks for this!), both appear centered and underneath each other; the Bar also expands to the full width of the Menu : /. Any tips so that I can make just that bar smaller and appears flush right? (I don’t need the icons–just the bar for now.)
(My site is http://therantinglatina.com)
Thanks so much in advance!!
If all you want is to add a search bar in the Primary nav, then there is no need to add any code from this article. Just go to Genesis > Theme Settings > Navigation and set Search form to be shown in the Primary Navigation Extras.
Oh wow I totally missed this. Clearly I have a LOT to learn and explore in Genesis. Thanks SOOO much!!!
Hi Sridhar. Your article was just what I was looking for – thanks!
I’ve been able to place several of the Social Media Widget icons at the right of the menu. But then I ran into problems trying to add a Feedburner form link too – using custom services. I realize that the Social Media Widget isn’t your plugin, you were just adding the Social Menu wrapper widget. I don’t know if what I want is possible within that Widget (adding custom HTML), but i tried adding Custom Text widgets into the Social Menu, and couldn’t get them placed right.
But in the process of trying to figure out what was causing the problem, I noticed what appears to be a problem with your widget – or perhaps with the Social Media Widget. I’m not a great coder, so I can’t be sure.where the issue is.
What I see is a start generated by your widget, then the code from the Social Media Widget. Then, instead of code from the Custom Text widget, there is a closing . So the Custom Text doesn’t show up in the right place, or with the right style. Does this make sense? Or have I set up something wrong?
I’m using Genesis Prose with the menu in the secondary location. It’s only visible on LAN right now.
Here’s the code:
Thanks
Mike
I’ve just tested adding Feedburner subscription form to the right of social icons (using Simple Social Icons plugin, but this does not matter and you can use Social Media Widget plugin for this) in Prose and with a bit of CSS, it works fine.
See http://i.imgur.com/iOr979F.png
Custom CSS: http://pastebin.com/raw.php?i=deTHEUrZ
Custom Functions: http://pastebin.com/raw.php?i=K90VzVta
Sridha, thanks for the quick reply. I’m trying to do something a little different to what you show with the screenshot, but that shouldn’t matter. I have the functions additions just the same as yours – in the Prose custom code area. And the Custom CSS I used was your original. It looks like the extra things you added were partly for the ability to use the entry box and submit inside the menu. I added them, but it makes no difference.
Here is the code showing the problem as it appears to me.
http://pastebin.com/XYKGxEfq
Hi Sridhar, I have added a Style sheet switcher to my nav bar, and following your direction all looks really good.
How do I make it responsive, at 768px and 320px width I would like the widget area to center.
Regards and respect
Mark
Thank you for this easy to follow code. Perfect for our needs and this may now be my new favourite Genesis geek site.
WOW, thank you, Sridhar! This was so helpful and exactly what I needed! I appreciate that you took the time to share this. It helped me a lot!
Thank you so much for sharing this. Extremely helpful.
Hi – does this still work with the most recent release of WP/Genesis? I have followed the directions for Dynamik and the new widget is not appearing for me to be able to use it.
I want to add the SEARCH form as if it were just another page or customized item in appearance/menus that is checked and placed at bottom of primary nav menu that appears on the far left of menu as last men item. It would, like all the other menu items take on the CSS for the nagivation area.
Everything I’ve seen shoves a whole new div in that adds a completely new row in which the search bar appears below the nav bar.
That said, I am not sure how to customize the above for adding SEARCH to the menu bar.
Great tutorial. How would I add the sidebar before the nav menu items begin? Just curious.
Can you tell me the use case?