• Resolved billy-boy

    (@billy-boy-1)


    Howdy,

    im looking to add a navigation menu with a Hamburger bars icon to the fixed handheld footer bar…. I found this page (https://docs.woocommerce.com/document/remove-the-handheld-navigation-bar/) that goes through adding a new link (to the home page) with icon and that worked just fine but am not sure how to modify the added function to have a functional navigation menu (or how to assign which predefined menu to use) with links instead of a simple link back to the main page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter billy-boy

    (@billy-boy-1)

    any ideas on this? I found this function below and it works, but is just a link to the home page…. so, anyone know what the actual FUNCTION to call would be for the HANDHELD MENU? then, i am hoping i can nest it in this function instead of the echo to “home” and it will do what i want lol.

    /** added nav to handheld footer */
    add_filter( ‘storefront_handheld_footer_bar_links’, ‘jk_add_home_link’ );
    function jk_add_home_link( $links ) {
    $new_links = array(
    ‘home’ => array(
    ‘priority’ => 10,
    ‘callback’ => ‘jk_home_link’,
    ),
    );
    $links = array_merge( $new_links, $links );
    return $links;
    }
    function jk_home_link() {
    echo ‘‘ . __( ‘Home’ ) . ‘‘;
    }`

    Hi @billy-boy-1,

    I’m sorry we missed your last post. Have you been able to resolve this issue?

    If not, this thread involves a fairly complex development topic. I’m going to leave it open for a bit longer to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Hi again,

    Hope you managed to modify the handheld menu! We haven’t heard back from you for a while, so I’m going to mark this post as resolved. If you have any further questions or need additional help with the Storefront theme, please start a new thread and we’ll be able to help you out there. Thanks!

    Thread Starter billy-boy

    (@billy-boy-1)

    hi, no havent gotten this sorted but DO think it would be a elegant and logical solution for the menu on handheld devices….

    Hi there,

    In that case, it would be great to have you add this idea to the Ideas Board, which is where developers go to look for future plugin features and improvements.

    If you have any further questions or need additional help with the Storefront theme, please start a new thread and we’ll be able to help you out there. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add Navigation Menu to Handheld Footer Bar’ is closed to new replies.