- This topic has 15 replies, 5 voices, and was last updated 8 years, 7 months ago by
Leo.
-
AuthorPosts
-
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 #206447Roberto Enrique
This is something i need to know too. Following the post
July 4, 2016 at 10:06 am #206475Tom
Lead DeveloperLead DeveloperThere 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 #206494Benjamin
Thanks Tom you’re the best!!!
July 4, 2016 at 11:01 am #206499Tom
Lead DeveloperLead DeveloperGlad I could help 🙂
September 16, 2016 at 8:52 am #226980Benjamin
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 #227006Tom
Lead DeveloperLead DeveloperYou 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 #227011Benjamin
It works Tom! Thanks!
September 16, 2016 at 9:33 am #227012Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
August 28, 2017 at 4:02 pm #375005Dave
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 #375021Leo
StaffCustomer SupportYup 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 #375087Dave
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 #375094Leo
StaffCustomer SupportAhh 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 #375290Benjamin
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(); } ?>August 29, 2017 at 2:12 pm #375609Dave
Ah ok got it to work. Thanks all!
-
AuthorPosts
- You must be logged in to reply to this topic.