Site logo

Archived topic

Primary menu at bottom

16 replies · Started by Elie on April 14, 2018

Viewing posts 1–15 of 17

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.

Hi there,

Just to make sure, you are wanting the primary navigation at the bottom of the page below the copyright?

Hi 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.

Hi 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.

Yes 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.

Looks like the navigation is still set to float right?

Yes I do it now then is not working, I set it to below header now

How are you adding the code?

I 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 );
}
}

You 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/

The 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.

Can 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 );
}

Not working, if you want I can give the access to the site so tha you can try it?

This archived topic is closed to new replies.