HomePage › Forums › Themes Support › Freshio – Organic & Food Store WordPress Theme › buttons in mobile view
Tagged: mobile resposive buttons
- This topic has 8 replies, 2 voices, and was last updated 2 years, 7 months ago by Billy Nguyen.
-
AuthorPosts
-
September 19, 2021 at 7:22 pm #15090breakoverSupport Expired
How can I change the buttons that default to “shop,myaccount,search,wishlist” in mobile view?
September 20, 2021 at 10:49 am #15104Hi you,
Hi there,
#1. To change text on menu mobile, please copy code and paste into file functions.php on child-theme
– Shop:
function freshio_handheld_footer_bar_shop_link() { echo '<a href="' . esc_url( get_permalink( get_option( 'woocommerce_shop_page_id' ) ) ) . '"><span class="title">' . esc_attr__( 'Shop', 'freshio' ) . '</span></a>'; }
– My account:
function freshio_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', 'freshio' ) . '</span></a>'; }
– Search:
function freshio_handheld_footer_bar_search() { echo '<a href=""><span class="title">' . esc_attr__( 'Search', 'freshio' ) . '</span></a>'; freshio_product_search(); }
– Wishlist:
function freshio_handheld_footer_bar_wishlist() { if ( function_exists( 'yith_wcwl_count_all_products' ) ) { ?> <a class="footer-wishlist" href="<?php echo esc_url( get_permalink( get_option( 'yith_wcwl_wishlist_page_id' ) ) ); ?>"> <span class="title"><?php echo esc_html__( 'Wishlist', 'freshio' ); ?></span> <span class="count"><?php echo esc_html( yith_wcwl_count_all_products() ); ?></span> </a> <?php }elseif (function_exists('woosw_init')) { $key = WPCleverWoosw::get_key(); ?> <a class="footer-wishlist" href="<?php echo esc_url(WPCleverWoosw::get_url( $key, true )); ?>"> <span class="title"><?php echo esc_html__('Wishlist', 'freshio'); ?></span> <span class="count"><?php echo esc_html(WPCleverWoosw::get_count($key)); ?></span> </a> <?php } }
September 20, 2021 at 11:26 pm #15161breakoverSupport ExpiredThank you for quick support. And how can i change wishlist button to shopping cart ?
September 21, 2021 at 11:33 am #15181Yes, I have just resolved this issue, please recheck.
September 21, 2021 at 4:45 pm #15189breakoverSupport Expiredits fixed. thanx bro.
September 21, 2021 at 6:15 pm #15194breakoverSupport Expiredhi there,
I encountered a problem editing the cart link. I fixed the cart link as below. When I open the mobile page, the phrase I wrote at first appears “sepet”, then it turns “cart” again.
function freshio_handheld_footer_bar_cart_link() {?>
” title=”<?php esc_attr_e( ‘Alışveriş sepetini görüntüle’, ‘freshio’ ); ?>”>
<span class=”count”><?php echo wp_kses_data( WC()->cart->get_cart_contents_count() ); ?></span>
<span class=”title”><?php esc_html_e( ‘Sepet’, ‘freshio’ ); ?></span>
<?php
}September 22, 2021 at 11:25 am #15212Hi again,
You have to delete all items in the cart, then add the item again.
The problem is that the cart still has the old cache, so when it loads it will reload the old text before you change it.September 22, 2021 at 4:37 pm #15232breakoverSupport ExpiredFixed. Thanks so much.
September 22, 2021 at 4:39 pm #15234Ok, let me know if you need to help.
-
AuthorPosts
You must be logged in to reply to this topic.