HomePage › Forums › Themes Support › Poco – Fast Food Restaurant WordPress Theme › Modify Handheld footerbar
- This topic has 3 replies, 3 voices, and was last updated 2 years, 11 months ago by Billy Nguyen.
-
AuthorPosts
-
December 28, 2020 at 8:02 pm #3034LucasPastaBoysSupport Expired
Hello,
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:
Do you have an alternative solution for this problem?
With kind regards,
Lucas RaemakersDecember 29, 2020 at 9:08 am #3039Hi 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>'; poco_product_search(); }
– 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> </a> <?php }
You can change text, edit links for them.
April 7, 2021 at 2:21 am #7742LucasPastaBoysSupport ExpiredThanks for the reply. Sorry for responding a little late. I applied your solution, it worked for all footer buttons, except the cart. I would like to change the name of the cart.
Also is it possible to change the icons in the footer?
April 7, 2021 at 10:42 am #7747Hi again,
#1. Please send Admin web account for me, I will check and help you.
#2. We just support list icon at https://demo2.pavothemes.com/poco/icons/, let me know what icon you want to use, I will check and help you. -
AuthorPosts
You must be logged in to reply to this topic.