Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #3879
    Avatarandreifechete
    Supported

    From where can i change the footer icons menu to change the content and url links?
    i need to rename shop icon and link it to another page and i need to take out My account and search button

    #3930

    Hi there,

    To change text or link on menu mobile, 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();
        }

    – Wishlist:

    function poco_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', 'poco'); ?></span>
                    <span class="count"><?php echo esc_html(yith_wcwl_count_all_products()); ?></span>
                </a>
                <?php
            }
        }

    Then edit text or link on this functions.

    Ex: Change shop text and link
    Edit: esc_attr__(‘Shop’, ‘poco’) => esc_attr__(‘Your name’, ‘poco’);

    href=”‘ . esc_url(get_permalink(get_option(‘woocommerce_shop_page_id’))) . ‘”
    = href=”your-link”

    #3939
    Avatarandreifechete
    Supported

    Thank you for this

    How can i remove items from the menu and lave only what i need?

    will i just remove the entire line code

    function poco_handheld_footer_bar_wishlist() {
    if (function_exists(‘yith_wcwl_count_all_products’)) {
    ?>
    “>
    <span class=”title”><?php echo esc_html__(‘Wishlist’, ‘poco’); ?></span>
    <span class=”count”><?php echo esc_html(yith_wcwl_count_all_products()); ?></span>

    <?php
    }
    }

    #3944

    Hi,

    To remove icon wishlist, please use this code:

    add_filter('poco_handheld_footer_bar_links', 'poco_function_unlink_icon', 10, 1);
    function poco_function_unlink_icon($links){
    unset($links['wishlist']);
    return $links;
    }
    
    #3952
    Avatarandreifechete
    Supported

    i want to remove my account, and change name for Cart

    so i`ll leave only Shop (with the translation), search, and cart (with the translation)

    can you please help me to achieve this?

    #3979

    Hi,

    I have just resolved this issue for you, please recheck.

    #3989
    Avatarandreifechete
    Supported

    That`s great, much appreciate it.

    Where did you change it? cause i need to change the cart translation

    #4023
    This reply has been marked as private.
    #4052
    Avatarandreifechete
    Supported

    That`s perfect!

    another one sorted!

    Thanks a lot!

    #4053

    Ok, don’t forget vote 5 stars for our team on themeforest.net
    Thanks very much!

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

You must be logged in to reply to this topic.