Forum Replies Created

Viewing 1 replies (of 1 total)
  • add_filter( ‘storefront_handheld_footer_bar_links’, ‘jk_remove_handheld_footer_links’ );
    function jk_remove_handheld_footer_links( $links ) {
    unset( $links[‘my-account’] );
    unset( $links[‘search’] );
    unset( $links[‘cart’] );

    return $links;
    }

    add_filter( ‘storefront_handheld_footer_bar_links’, ‘jk_add_home_link’ );
    function jk_add_home_link( $links ) {

    $new_links = array(
    ‘home’ => array(
    ‘priority’ => 20,
    ‘callback’ => ‘jk_home_link’,
    ),
    ‘search’ => array(
    ‘priority’ => 30,
    ‘callback’ => ‘storefront_handheld_footer_bar_search_link’,
    ),
    ‘my-account’ => array(
    ‘priority’ => 40,
    ‘callback’ => ‘storefront_handheld_footer_bar_account_link’,
    ),
    );

    $links = array_merge( $new_links, $links );

    return $links;
    }

    function jk_home_link() {
    echo ‘‘ . __( ‘Home’ ) . ‘‘;
    }

Viewing 1 replies (of 1 total)