Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1302618

    Hey,

    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,
    Yigit

    #1303861

    Hello,

    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

    #1304086

    Hi,

    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,
    Yigit

    #1304495

    Thank you Yigit. I will give it a shot :)

    #1304653

    Hi,

    You are welcome! I will keep the thread open and wait to hear from you. In case you need assistance, please let us know :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.