Archived topic
image logo next to burger for slideout primary navigation
24 replies · Started by sparkle on November 2, 2020
hi, a while back i found some nice instructions to make a slideout navigation for my primary nav. i implemented it and it works great, and you guys helped me get the site title looking right, but now we'd like to use an image next to the hamburger -- only on the main page (and enlarge the burger a bit). how would i do that? i tried this code from a support thread, but had no luck.
add_action( 'generate_inside_slideout_navigation', function() {
?>
<div class="off-canvas-logo">
<a href="/"><img src="/wp-content/uploads/2020/10/CAsign.jpg" alt="" /></a>
</div>
<?php
} );
fair warning, the logo is larger than necessary at the momment.
Hi there,
Just to confirm, you are looking to replace Charon Arts text with a logo image?
Let me know :)
yes. and only on the front page.
Can you add the logo under site identity first?
it is. https://imgur.com/PlK17Yr
Are you using this option here?
https://docs.generatepress.com/article/navigation-as-a-header/
Or how are you removing the site header?
no, i think it's this..... https://imgur.com/2qG7q5E
it worked so well i didn't bother to book mark it.
doing this was also part of the instructions.... and some css. https://imgur.com/d8aDzsJ
Those things should be unrelated to what I'm asking.
Can you check if this option is activated in the customizer?
https://docs.generatepress.com/article/navigation-as-a-header/
If not, do you have any layout element created?
The entire site header in your site is missing.
oh, sorry... yes, i looked. that is checked.
I see the logo but it's super small currently.
Have you changed the navigation breakpoint?
where do you see it? the image should be in place of the CHARON ARTS in this screenshot.
https://imgur.com/qudbqHy
i don't believe i have changed the breakpoint.
https://imgur.com/R0R8VZO
this is the css i've got that is associated with it.
https://imgur.com/QtkkptQ
THANK YOU!
i haven't done anything with GP Elements in this site to hide it...
https://imgur.com/ziUUrCC
Can you provide the dashboard login for me to take a quick look?
done.
Can you try increasing the menu item height?