HomePage › Forums › Themes Support › Poco – Fast Food Restaurant WordPress Theme › Modify Handheld footerbar › Reply To: Modify Handheld footerbar
December 29, 2020 at 9:08 am
#3039
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>';
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.