- This topic has 7 replies, 2 voices, and was last updated 5 months, 2 weeks ago by
Leo.
-
AuthorPosts
-
August 3, 2020 at 10:03 am #1386026
Greg
Hello… I am having an issue with the mobile menu displaying while inside the navigation. It works fine until I add the inside navigation hooks. After that I just get the text “menu” (no burger icon or anything). And when clicking on it nothing happens. I also noticed that it is grayed out but it is white when it is working without the hooks. Sorry, I cant see how to upload screenshots. Thanks in advance! The site is not live anywhere but here is the code to the hooks:
Navigation Logo:
<?php add_action( 'generate_inside_navigation','generate_site_logo_navigation' ); function generate_site_logo_navigation() { ?> <div class="menu-logo"> <img alt="Old City Windowbox Co." src="http://windowbox.local/wp-content/uploads/2020/07/Asset-4.png" /> </div> <?php } Navigation Logo Text: <?php add_action( 'generate_inside_navigation','generate_site_title_navigation' ); function generate_site_title_navigation() { ?> <div class="menu-site-title"> Old City Windowbox Co. </div> <?php }
August 3, 2020 at 11:57 am #1386189Leo
StaffCustomer SupportHi there,
Sorry what is the custom code for?
Where are you adding it?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 3, 2020 at 1:44 pm #1386296Greg
Thanks for the reply. It is being added to the nav bar using the inside navigation hook. The logo icon and logo text are at the top left and the menu is on the top right. I hope this helps
August 3, 2020 at 2:35 pm #1386326Leo
StaffCustomer SupportSorry still a bit confused.
Not sure why you need to use custom code for that layout?
The topic is also marked as resolved. Have you figured out?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 3, 2020 at 2:59 pm #1386344Greg
Oh it must have defaulted to resolved. The custom code is so I can have a icon logo and a text logo in the navbar. I thought that it is not possible to do that without using a hook. So I have the icon logo top left. The text logo just to the right of that…all of which are positioned at the top left of the navbar. Then the menu items are to the right of the navbar. Thanks
August 3, 2020 at 9:27 pm #1386455Leo
StaffCustomer SupportWouldn’t that just be the mobile header option?
If not can you link me to the page in question?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 4, 2020 at 5:10 am #1386774Greg
I didnt know about activating menu plus to access mobile header section. I was able to get it somewhat how I wanted it using that option. I’ll continue to work with it. Thanks for your help!
August 4, 2020 at 8:16 am #1387098Leo
StaffCustomer SupportNo problem 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.