HomePage › Forums › Themes Support › Poco – Fast Food Restaurant WordPress Theme › Edit footer icons menu
Tagged: Edit footer icons menu
- This topic has 9 replies, 3 voices, and was last updated 3 years, 2 months ago by Billy Nguyen.
-
AuthorPosts
-
January 20, 2021 at 5:46 pm #3879andreifecheteSupport Expired
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 buttonJanuary 22, 2021 at 2:05 pm #3930Hi 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”January 22, 2021 at 3:26 pm #3939andreifecheteSupport ExpiredThank 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
}
}January 22, 2021 at 3:54 pm #3944Hi,
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; }
January 22, 2021 at 4:21 pm #3952andreifecheteSupport Expiredi 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?
January 23, 2021 at 10:58 am #3979Hi,
I have just resolved this issue for you, please recheck.
January 23, 2021 at 8:29 pm #3989andreifecheteSupport ExpiredThat`s great, much appreciate it.
Where did you change it? cause i need to change the cart translation
January 25, 2021 at 10:45 am #4023This reply has been marked as private.January 25, 2021 at 4:22 pm #4052andreifecheteSupport ExpiredThat`s perfect!
another one sorted!
Thanks a lot!
January 25, 2021 at 4:32 pm #4053Ok, don’t forget vote 5 stars for our team on themeforest.net
Thanks very much! -
AuthorPosts
You must be logged in to reply to this topic.