Archived topic
I can insert a logo in slide-out menu?
15 replies · Started by Benjamin on July 4, 2016
Hi Tom,
Is there any way to insert an image into the slide-out menu, an example image what I mean

This is something i need to know too. Following the post
There is a hook available there:
add_action( 'generate_inside_slideout_navigation','generate_slideout_navigation_logo' );
function generate_slideout_navigation_logo()
{
?>
<img src="URL TO YOUR IMAGE" alt="" />
<?php
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Thanks Tom you're the best!!!
Glad I could help :)
Hi Tom,
I have a question, I can do that automatically take the logo embedded in the custom?
add_action( 'generate_inside_slideout_navigation','generate_slideout_navigation_logo' );
function generate_slideout_navigation_logo()
{
?>
<strong>Custom_Logo</strong>
<?php
}
it's possible?
Thanks
You could try this:
add_action( 'generate_inside_slideout_navigation','generate_slideout_navigation_logo' );
function generate_slideout_navigation_logo()
{
the_custom_logo();
}
It works Tom! Thanks!
You're welcome :)
Hey Tom, is this still the process for putting a logo above the slide out menu?
If so, you said there's a hook - like a GP Hook or something else?
Yup this hook: https://docs.generatepress.com/article/generate_inside_slideout_navigation/
Tom provided an example above: https://generatepress.com/forums/topic/i-can-insert-a-logo-in-slide-out-menu/#post-227006
I'm dumb guys I'm sorry - does this go in the GP Hooks tab and in one of those sections within WordPress? Or somewhere else.
I'm sorry, I'm trying to learn.
Ahh no this one requires you to add them as a function.
Code Snippets works the best: https://docs.generatepress.com/article/adding-php/#code-snippets
If you have premium gp placed in the wp_head hook this
<?php
add_action( 'generate_inside_slideout_navigation','generate_slideout_navigation_logo' );
function generate_slideout_navigation_logo()
{
the_custom_logo();
}
?>
Ah ok got it to work. Thanks all!