Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3034


    I would like to costumize the handheld footerbar from woocommerce on my website for mobile phones. The current footerbar shows 4 options: Shop, My accounnt, Search, Cart.

    I would like to remove the My account and search option, and change shop to menu (as I am not using the standard woocommerce shop page to display my products, but a costum menu page).

    I tried the sollutions given by woocommerce, but these do not work:

    Customize links in the handheld footer bar

    Do you have an alternative solution for this problem?

    With kind regards,
    Lucas Raemakers


    Hi there,

    #1. to edit Menu footer, please copy code and paste into file functions.php on child-theme

     – Shop:

    function poco_handheld_footer_bar_shop_link() {
            echo '<a href="' . esc_url(get_permalink(get_option('woocommerce_shop_page_id'))) . '"><span class="title">' . esc_attr__('Shop', 'poco') . '</span></a>';

    – My account:

    function poco_handheld_footer_bar_account_link() {
            echo '<a href="' . esc_url(get_permalink(get_option('woocommerce_myaccount_page_id'))) . '"><span class="title">' . esc_attr__('My Account', 'poco') . '</span></a>';

    – Search:

    function poco_handheld_footer_bar_search() {
            echo '<a href=""><span class="title">' . esc_attr__('Search', 'poco') . '</span></a>';

    – Cart:

    function poco_handheld_footer_bar_cart_link() {
            <a class="footer-cart-contents" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="<?php esc_attr_e( 'View your shopping cart', 'poco' ); ?>">
                <span class="count"><?php echo wp_kses_data( WC()->cart->get_cart_contents_count() ); ?></span>

    You can change text, edit links for them.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.