Tagged: Navigation Bar, widget area
- This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by kat42.
-
AuthorPosts
-
May 4, 2016 at 2:01 pm #91005kat42Participant
Thank you for the awesome theme! I am working in a child theme of Clean Box and would like to create a widget area in my navigation bar, on the right (to replace the header-toggle button.
I’ve registered the widget area so that it appears in WordPress Widgets, but I now need to make it active in the navigation bar. I understand I need to call the dynamic widget area on the header toggle button, using dynamic_widget(), but am not sure exactly where in the child theme I should add this code.
I am working locally, so I unfortunately can’t include a URL.
I’d be very grateful for any advice.
May 4, 2016 at 3:52 pm #91011MaheshParticipant@kat42: You’ll need to override
clean_box_primary_menu
function. The function is in clean-box/inc/clean-box-menus.php file. You’ll find header-toggle and header-toggle-sidebar div in the function, and it is what you’ll need to replace with your widget.
Hope this helps.Regards,
MaheshMay 9, 2016 at 3:33 am #91276kat42ParticipantThank you so much for this advice – I can see what I need to do, and have found some great online tutorials on overriding parent theme functions in WordPress. Much gratitude!
-
AuthorPosts
- The topic ‘Create widget area in navigation bar (on the right)’ is closed to new replies.