Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #91005
    kat42
    Participant

    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.

    #91011
    Mahesh
    Keymaster

    @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,
    Mahesh

    #91276
    kat42
    Participant

    Thank 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!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Create widget area in navigation bar (on the right)’ is closed to new replies.