Home › Forums › Support › I can insert a logo in slide-out menu? This topic has 15 replies, 5 voices, and was last updated 6 years, 6 months ago by Leo. Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → Author Posts July 4, 2016 at 6:14 am #206420 Benjamin Hi Tom, Is there any way to insert an image into the slide-out menu, an example image what I mean July 4, 2016 at 9:12 am #206447 Roberto Enrique This is something i need to know too. Following the post July 4, 2016 at 10:06 am #206475 TomLead Developer Lead Developer 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/ July 4, 2016 at 10:47 am #206494 Benjamin Thanks Tom you’re the best!!! July 4, 2016 at 11:01 am #206499 TomLead Developer Lead Developer Glad I could help 🙂 September 16, 2016 at 8:52 am #226980 Benjamin 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 September 16, 2016 at 9:20 am #227006 TomLead Developer Lead Developer You could try this: add_action( 'generate_inside_slideout_navigation','generate_slideout_navigation_logo' ); function generate_slideout_navigation_logo() { the_custom_logo(); } September 16, 2016 at 9:32 am #227011 Benjamin It works Tom! Thanks! September 16, 2016 at 9:33 am #227012 TomLead Developer Lead Developer You’re welcome 🙂 August 28, 2017 at 4:02 pm #375005 Dave 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? August 28, 2017 at 5:11 pm #375021 LeoStaff Customer Support 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 August 28, 2017 at 7:53 pm #375087 Dave 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. August 28, 2017 at 8:06 pm #375094 LeoStaff Customer Support 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 August 29, 2017 at 4:27 am #375290 Benjamin 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(); } ?> Example https://generatepress.com/downloads/generate-hooks/ August 29, 2017 at 2:12 pm #375609 Dave Ah ok got it to work. Thanks all! Author Posts Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In