- This topic has 16 replies, 2 voices, and was last updated 5 years, 11 months ago by Leo.
-
AuthorPosts
-
April 14, 2018 at 1:30 pm #550459Elie
Hello Guy,
I hope you can help with this issue.
I want to set the menu on fullwidth home page at bottom, I try to use the page header but no success,
I want to have the Sticky menu on and when I scroll the sticky menu appear.Can you help me, to set at the home the primary menu at bottom, the home page is fullwidth.
Thanks a lot for your help.
April 14, 2018 at 4:40 pm #550539LeoStaffCustomer SupportHi there,
Just to make sure, you are wanting the primary navigation at the bottom of the page below the copyright?
April 17, 2018 at 1:52 pm #553140ElieHi Leo,
Sorry for the delay, I has a big problem with my licence and I could not anwser.
So no I don’t want the primary navigation at the bottom of page, but at the bottom of my fullpage Header.
April 17, 2018 at 4:30 pm #553238LeoStaffCustomer SupportThis should help: https://generatepress.com/forums/topic/page-header-image-above-menu/#post-288568
Make sure the navigation location is set to below header.
April 17, 2018 at 11:49 pm #553427ElieHi Leo,
I try it but they don’t work.
I want to have the navigation below the page header on my hompepage, with the code nothing happen.Look here : https://academy.femmedinfluence.fr/accueil/
Thanks for help.
April 18, 2018 at 8:33 am #553868LeoStaffCustomer SupportDid you set this to below header as I suggested above?
https://docs.generatepress.com/article/navigation-location/Let me know.
April 19, 2018 at 8:53 am #554890ElieYes I did it, but not work.
I have a Page Header and I want to have it above the menu, I just have the functionnality to merge it.
April 19, 2018 at 10:07 am #554943LeoStaffCustomer SupportLooks like the navigation is still set to float right?
April 19, 2018 at 1:51 pm #555128ElieYes I do it now then is not working, I set it to below header now
April 19, 2018 at 8:43 pm #555298LeoStaffCustomer SupportHow are you adding the code?
April 19, 2018 at 11:03 pm #555368ElieI added the code in functions.php theme, here is the code I added :
add_action( ‘after_setup_theme’,’craig_move_navigation’ );
function craig_move_navigation() {
if ( is_front_page () ) {
remove_action( ‘generate_after_header’, ‘generate_add_navigation_after_header’, 5 );
add_action( ‘generate_after_header’, ‘generate_add_navigation_after_header’, 15 );
}
}April 20, 2018 at 8:53 am #555799LeoStaffCustomer SupportYou are using the conditional tag
is_front_page ()
which only applies to the home page.
The page you’ve linked isn’t the front page.Also the code should not be added to function.php of the theme, try one of these methods here:
https://docs.generatepress.com/article/adding-php/April 21, 2018 at 11:44 am #556693ElieThe page is now front page, you can look it, like I say when the page is home page is not work.
I put the code already in the functions.php of my child theme. but nothing.
April 21, 2018 at 12:27 pm #556722LeoStaffCustomer SupportCan you try this without the conditional tag and see if it works?
add_action('after_setup_theme','generate_change_nav_position'); function generate_change_nav_position() { remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 ); add_action( 'generate_after_header', 'generate_add_navigation_after_header', 29 ); }
April 22, 2018 at 12:03 pm #557396ElieNot working, if you want I can give the access to the site so tha you can try it?
-
AuthorPosts
- You must be logged in to reply to this topic.