HomePage › Forums › Themes Support › Freshio – Organic & Food Store WordPress Theme › How to edit Footer bar Menu on mobile version
- This topic has 14 replies, 7 voices, and was last updated 1 year, 3 months ago by Billy Nguyen.
-
AuthorPosts
-
October 18, 2021 at 11:26 am #16107
#1. To disable this menu, please add this code to file functions.php ( child-theme):
function freshio_handheld_footer_bar() { return; }
or go to Freshio Options -> Footer -> Enable Handheld Footer Bar -> No: https://prnt.sc/1wkioz9
#2. Edit this menu:
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', 'shopic') . '</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 } }
- This topic was modified 2 years, 5 months ago by Billy Nguyen.
October 20, 2021 at 4:42 pm #16258GRiiiiiMSupport ExpiredCan you tell us precisely where to insert the links and the name to replace, for less experienced people.
ThanksOctober 21, 2021 at 10:57 am #16290Hi @griiiiim,
EX:
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>'; }
– Change link:
href="' . esc_url(get_permalink(get_option('woocommerce_shop_page_id'))) . '"
=>href="your-link"
– Change Title:' . esc_attr__('Shop', 'freshio') . '
=> ‘Your-text’October 21, 2021 at 7:31 pm #16323GRiiiiiMSupport ExpiredThank alot, you helped me and I think also other guys.
Can I ask you How can I delete the wishlist?October 22, 2021 at 9:12 am #16336ryanjonesbayron027Support ExpiredHow to change the ICON? i want to change the MY ACCOUNT ICON thanks
October 22, 2021 at 10:34 am #16348Hi @griiiiim,
To remove wishlist, please use this code:
add_filter('freshio_handheld_footer_bar_links', 'freshio_handheld_footer_remove_wishlist'); function freshio_handheld_footer_remove_wishlist($links){ unset( $links['wishlist'] ); return $links; }
October 22, 2021 at 10:36 am #16349We just support icon on list: Icons
Please tell me the icon you want to change is this icon, I will show you how to change it
November 10, 2021 at 11:07 pm #17127[email protected]Support ExpiredHi,
I tried it, but it’s not works for me. How Can I delete the search icon in the foot bar?
thanks
November 11, 2021 at 8:43 am #17138To delete the search icon in the footer bar, please copy and paste this code to file functions.php ( child-theme):
add_filter('freshio_handheld_footer_bar_links', 'freshio_handheld_footer_remove_search'); function freshio_handheld_footer_remove_search($links){ unset( $links['search'] ); return $links; }
November 14, 2021 at 1:52 am #17238uzzy33Support ExpiredI would like to change the search button with a static link page with maybe the icon .freshio-icon-farm , is it possible?
Thanks
November 15, 2021 at 9:59 am #17249Hi @uzzy33,
About your issue, please copy code and paste into file functions.php on child-theme:
function freshio_handheld_footer_bar_search() { echo '<a href="your-link-page"><span class="title">' . esc_attr__('Search', 'shopic') . '</span></a>'; }
To change the icon, you will have to edit the css for it, please create a new topic for your support request, I will review and handle it.
December 14, 2021 at 12:04 am #18210pm441Support ExpiredIs this the most recent information regarding the bottom handheld menu? On some posts you recommend setting the Handheld menu via (Appearance > Menu), on other posts there’s info on editing functions.php.
We tried setting a new menu to Handheld location it via Appearance > Menus > Manage locations, but that default menu is not changing – the same links are there (Shop, Account, Search). I’m guessing that doesn’t work and editing functions.php is the only way?
December 14, 2021 at 9:27 am #18223Hello @pm441,
We have 2 types of menus on mobile: https://ibb.co/XFGWvjp
1. Mobile menu: use the menu created from Appearance > Menus as you mentioned (1)
2. The handheld footer menu is the sticky display menu in the footer.
This menu is permanently created with php code as I have shown in this article (2)
To edit this menu you will have to override the functions as I instructed and the functions.phpDecember 11, 2022 at 1:00 pm #29985seooffice005Support Expiredhow i can change mobile footer view menu setting …
December 12, 2022 at 8:39 am #29996Hello @seooffice005,
With your theme, please follow the guide here: https://pavothemes.com/forums/topic/how-to-edit-link-or-text-on-footer-bar/
-
AuthorPosts
You must be logged in to reply to this topic.