Archived topic
Custom content to menu
5 replies · Started by Markku on November 11, 2015
Hello,
I would like to add custom content to the slideout menu, before navigation links, like this:
[Custom html content]
Nav link 1
Nav link 2
Nav link 3
Does anyone have function for this purpose or suggestion for the plugin.
Thanks!
Hi there,
You can use the generate_inside_slideout_navigation hook.
add_action( 'generate_inside_slideout_navigation', 'my_custom_slideout_content' );
function my_custom_slideout_content()
{ ?>
Your HTML in here.
<?php }
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
what about after the navigation links?
There's no hook for that yet, but I'll look into adding one :)
that would be great thanks:)
In the next version you'll be able to use this hook: generate_after_slideout_navigation
