Archived topic
add widget area under primary menu
5 replies · Started by Nadine on April 15, 2020
Hi, I am brand new to GeneratePress, but really liking it so far. I want to put my social icons under the primary navigation bar. I have the Lightweight Social Icons installed. How do I add a widget area under the menu in the header?
Working on site locally, so no url to send.
Thanks!
Hi there,
The easiest way would be to use a plugin like Widget shortcode:
https://en-ca.wordpress.org/plugins/widget-shortcode/
Then insert the shortcode using a hook with hooks element:
https://docs.generatepress.com/article/hooks-element-overview/
https://docs.generatepress.com/article/hooks-visual-guide/
Let me know if this helps :)
Thanks Leo. I really hate to add a plugin just for this. Can I add any of the theme templates to my child theme and add anything that way? Any other options?
Should be a very small plugin with minimal impact on your site.
You can try to find another social icon plugin that comes with a shortcode already or just use SVG icons.
So there's no way to edit the header template to add in a widget area and not use a shortcode?
Editing the header template and registering a new widget area would be a lot more complicated than the solutions provided above.