You are adding filter, not an action. I don’t know how Genesis hook works, but native wp_nav_menu_items
passes (and expects back) markup of custom menu items.
Instead of echoing your additional stuff you should append it to input and return.
This is clearly how it’s done in tutorial you linked to:
add_filter('wp_nav_menu_items','follow_icons',10,1);
function follow_icons($output) {
$follow = 'some stuff';
return $output.$follow;
}
Upd. Forgot to add about sidebar part. Since sidebars are echoed by definition you will likely have to buffer its output to use in such fashion. Maybe instead of making widget ares literally inside menu it is better to look for hook that allows to do this nearby?
Related Posts:
- WP – Genesis – How to get the content of a widget in php? [closed]
- Turn off “This is the Primary Sidebar Widget Area” message
- links to Media Library content in sidebar per page
- Searching for a one page overview widget
- How do I add footer widgets to the StudioPress Monochrome Pro theme?
- Tabbed navigation in widget backend
- WooCommerce Layered Nav Widget [closed]
- How can I use the built in WordPress “browse link” functionality?
- Code for Recent Posts Widget
- Modifying the default search widget
- Prevent widgets removal
- Is there a way to add more tags to the tag cloud?
- Modify recent post sidebar to show post thumbs with out plugins
- How to build widget with arrays inside arrays?
- How do I save data from submitted form from widget
- Why Can’t wp_editor Be Used in a Custom Widget?
- How to use control_callback when creating a widget via functions.php or plugin?
- Disable default WordPress widgets in sidebar
- Updating to Version 4.5 bumped my “main sidebar” widget out of place
- How can I delete all inactive widgets?
- Ban certain widgets from certain sidebars
- How to use jQuery on widget admin page
- is_active_sidebar() Always Returns False
- Different rss feeds in a single dashboard widget
- jQuery does not work in widget backend
- Count widgets in position and set class
- Custom widget using get_categories select menu dropdown
- How do I add Widgets to my theme and activate them on my site?
- How to insert widget areas specific to certain pages (or posts, etc.)?
- Elegantly using JavaScript on widget admin forms
- Widget queries even when there are no sidebars?
- Add Descriptive text to Widget text box so users can see what they contain
- Trying to wrap around first word of multiple word strings with a widget_title() filter, only works on two word strings and not more than two
- Read file contents the WP way
- How to hack recent comments default widget?
- Recent Posts widget without Title
- Create a widget that allows text input
- Pre-install widgets in WP-Admin
- Subscribe2 widget with choosing categories?
- How to change plugin`s template (view) correctly?
- Showing a Thickbox (tb_show) does nothing
- How do I add a widget from an Android phone?
- Error gets thrown when calling require_once on widget.php
- Check if the current shortcode is being used in a widget
- How to create a widget that accepts html input?
- Widget changes in customizer ajax error to many options?
- How to Add TinyMCE to widget
- How can I get the first section of a page 100% width, while the rest will have a sidebar? [closed]
- Modify ‘Sizes’ Attribute for Images with Specific Class
- Dynamically add content to an existing widget area
- Issue understanding and using WordPress filters and actions
- How can I inject html after the [x]th widget inside a Sidebar? [duplicate]
- Tabs and Category Widget
- Grabbing how Many Posts by Month for a Dashboard Widget
- ‘is_author()’ logic in widget for author only
- wp_dropdown_pages in widget form
- Recent Comments from Specific Category Widget
- Different sidebars not changing
- How do I create a template page with a specific widget as the content?
- Loading the native WordPress image uploader in custom widget
- How to make widget appear conditionally
- How Migrate a Legacy Widget to block?
- Ampersand breaking Widget title
- Creating a dynamic class name in my custom widget
- How to show avatar of current logged in user in a widget
- Got a problem with a widget
- Widget control – putting a slideshow in the widget area
- Extending the WordPress Recent Posts Widget
- delete widget upon uninstall
- How to paste widget to a specific page
- How do I find out which
- How to update a widget data?
- An archive widget, coming from nowhere on my posts and pages
- custom widget not saved to sidebar
- When editing in block editor, the post/article gets under the floating widgets
- Make widget with media upload repeatable
- Is it possible to dynamically output the name of the widgets?
- What is the difference between widget object and widget instance?
- Apply two different styles to Wiget Titles along with a decorative line
- How Can I Replicate & Register a Widget from the Child Theme
- Widget to embed youtube video
- Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
- How to make featured area?
- Checking if widget has title not working
- wp_list_categories + widget
- How can I add widgets to the category page?
- Remove default WordPress widgets
- Disable wordpress widget automatically on error
- Can I add a widget to the of my site?
- How to show widget in frontend?
- Widget Development – Displaying dropdown content
- How do I stop out of stock items from appearing on my WooCommerce site when using the Layered Nav widget [closed]
- Single Widget Multi Sidebar
- An issue with register_sidebar and the admin interface
- page url in shortcode
- iframe/embed vid in text widget loads outside container and moves around when scrolling the page?
- Widget on home page displays wrong time compared to same widget on inside pages
- Widget logic not working
- Unable to add options on dashboard widget ?
- is it possible to create custom widgets page in admin?