Your account expired support, please renew to get your support.
Topic Resolution: Resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #15090
    breakover
    Support Expired

    How can I change the buttons that default to “shop,myaccount,search,wishlist” in mobile view?

    #15104

    Hi 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
            }
    	}
    #15161
    breakover
    Support Expired

    Thank you for quick support. And how can i change wishlist button to shopping cart ?

    #15181

    Yes, I have just resolved this issue, please recheck.

    #15189
    breakover
    Support Expired

    its fixed. thanx bro.

    #15194
    breakover
    Support Expired

    hi 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
    }

    #15212

    Hi 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.

    #15232
    breakover
    Support Expired

    Fixed. Thanks so much.

    #15234

    Ok, let me know if you need to help.

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

You must be logged in to reply to this topic.