HomePage › Forums › Themes Support › Poco – Fast Food Restaurant WordPress Theme › Modify Handheld footerbar
- This topic has 1 reply, 3 voices, and was last updated 3 weeks, 6 days ago by
Billy Nguyen.
-
AuthorPosts
-
December 28, 2020 at 8:02 pm #3034
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.
-
AuthorPosts
You must be logged in to reply to this topic.