or some reason “priority” didn’t work, so I had to swap $new_links and $links in the code and remove the “href” attribute, so the final code looks like this:
// add a place in footer bar in mobile screeins for chat icon
add_filter( 'storefront_handheld_footer_bar_links', 'jk_add_chat_link' );
function jk_add_chat_link( $links ) {
$new_links = array(
'chat' => array(
'priority' => 40,
'callback' => 'jk_chat_link',
),
);
$links = array_merge( $links, $new_links);
return $links;
}
function jk_chat_link() {
// echo "    ";
echo '<a>' . __( 'Chat' ) . '</a>';
}