-
AuthorPosts
-
May 26, 2021 at 12:27 am #1302329
Hello, so I decided to create a one page website with anchor links in the menu, however I wanted one page to be it’s own, my bio page. However, when someone clicks to go to the bio page, then clicks any of the other links besides “home”, the links don’t take them back to the front page. Is there a way to re-direct the top menu links to the front page anchor links?
I hope I described this right, kinda confusing issue.
Thanks
May 27, 2021 at 12:53 pm #1302618Hey,
Thanks for contacting us!
Please create another menu with full links and then add following code to bottom of Functions.php file of your child theme in Appearance > Editor – https://kriesi.at/documentation/enfold/child-theme/
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' ); function my_wp_nav_menu_args( $args = '' ) { if($args['theme_location'] === 'avia') if( is_page( 340 ) ) { $args['menu'] = 'Full Menu'; } else { $args['menu'] = 'Anchor Menu'; } return $args; }“340” is the page ID of your Bio page, “Full Menu” is the name of your menu with full links and “Anchor Menu” is the name of your anchor menu. Please adjust the names accordingly :)
Best regards,
YigitJune 3, 2021 at 5:51 pm #1303861Hello,
Thank you so much. But a couple questions… I didn’t create a child theme for this site, is it still possible to create one with the site already built? And by “another menu with full links” do you mean URL?
Thanks again
June 4, 2021 at 3:58 pm #1304086Hi,
1- Yes, after activating child theme, you can simply go to Enfold child theme options > Import & Export and click on import parent theme options and then save theme options.
2- Yes, I mean full URLs :)Best regards,
YigitJune 8, 2021 at 1:44 am #1304495Thank you Yigit. I will give it a shot :)
June 8, 2021 at 2:54 pm #1304653 -
AuthorPosts
- You must be logged in to reply to this topic.
