HomePage › Forums › Themes Support › Freshio – Organic & Food Store WordPress Theme › Mobile Handheld bar
- This topic has 15 replies, 4 voices, and was last updated 4 months, 2 weeks ago by
Stephen Pham.
-
AuthorPosts
-
November 24, 2020 at 10:18 am #1840
Hi, there
I’m Joseph, I purchased Freshio theme but it’s difficutl to edit mobile_handheld_bar in my mind.
Product 1 | Product 2 | Product 3 | Whistlist
Thanks!November 24, 2020 at 10:26 am #1842November 24, 2020 at 1:13 pm #1846Xin Chào,
Bạn vui lòng mô tả kỹ cho chúng tôi được không??
Cảm ơnNovember 24, 2020 at 1:20 pm #1848Chào Pham,
Hiện tại trong giao diện mobile thì nó có thanh freshio-handheld-footer-bar, thanh này mình không biết cách làm sao để làm theo ý mình. Hiện mình thì đang muốn ở dưới thanh đó hiển tại đường link theo như mình muốn ấy:
– Hiển thị nút & link theo ý mình (sản phẩm | sản phẩm | sản phẩm | sản phẩm)
Hiện tại nó mặc định ở thanh freshio-handheld-footer-bar là SHOP | MY ACCOUNT | SEARCH | MY WHISTLIST.
Cảm ơn!November 24, 2020 at 1:25 pm #1849Chào bạn,
Bạn vào file functions.php trong freshio-child và ghi đè lại functionfunction freshio_handheld_footer_bar() { $links = array( 'shop' => array( 'priority' => 5, 'callback' => 'freshio_handheld_footer_bar_shop_link', ), 'my-account' => array( 'priority' => 10, 'callback' => 'freshio_handheld_footer_bar_account_link', ), 'search' => array( 'priority' => 20, 'callback' => 'freshio_handheld_footer_bar_search', ), 'wishlist' => array( 'priority' => 30, 'callback' => 'freshio_handheld_footer_bar_wishlist', ), ); if ( wc_get_page_id( 'myaccount' ) === - 1 ) { unset( $links['my-account'] ); } if ( ! function_exists( 'yith_wcwl_count_all_products' ) ) { unset( $links['wishlist'] ); } $links = apply_filters( 'freshio_handheld_footer_bar_links', $links ); ?> <div class="freshio-handheld-footer-bar"> <ul class="columns-<?php echo count( $links ); ?>"> <?php foreach ( $links as $key => $link ) : ?> <li class="<?php echo esc_attr( $key ); ?>"> <?php if ( $link['callback'] ) { call_user_func( $link['callback'], $key, $link ); } ?> </li> <?php endforeach; ?> </ul> </div> <?php }
November 24, 2020 at 1:25 pm #1850Chào bạn,
Bạn vào file functions.php trong freshio-child và ghi đè lại functionfunction freshio_handheld_footer_bar() { $links = array( 'shop' => array( 'priority' => 5, 'callback' => 'freshio_handheld_footer_bar_shop_link', ), 'my-account' => array( 'priority' => 10, 'callback' => 'freshio_handheld_footer_bar_account_link', ), 'search' => array( 'priority' => 20, 'callback' => 'freshio_handheld_footer_bar_search', ), 'wishlist' => array( 'priority' => 30, 'callback' => 'freshio_handheld_footer_bar_wishlist', ), ); if ( wc_get_page_id( 'myaccount' ) === - 1 ) { unset( $links['my-account'] ); } if ( ! function_exists( 'yith_wcwl_count_all_products' ) ) { unset( $links['wishlist'] ); } $links = apply_filters( 'freshio_handheld_footer_bar_links', $links ); ?> <div class="freshio-handheld-footer-bar"> <ul class="columns-<?php echo count( $links ); ?>"> <?php foreach ( $links as $key => $link ) : ?> <li class="<?php echo esc_attr( $key ); ?>"> <?php if ( $link['callback'] ) { call_user_func( $link['callback'], $key, $link ); } ?> </li> <?php endforeach; ?> </ul> </div> <?php }
November 24, 2020 at 1:42 pm #1853Hi Pham,
Mình vẫn chưa biết được việc chèn đoạn sản phẩm vào thanh footer đó như nào.
Giúp mình nhé,
Cảm ơn bạn!November 24, 2020 at 1:44 pm #1854Đoạn code kia là chèn 4 icon vào phần footer bar đó ở mobile. Bạn vui lòng đọc kỹ code nhé.
Thân,
November 26, 2020 at 3:01 pm #1900Mình đã sửa và hiện theo đúng link mình muốn chèn, theo đoạn code bên dưới. Giờ mình muốn custom icon thì phải làm sao, có thể hướng dẫn thêm phần này không nhỉ, phần link mình thêm vào không hiện icon.
‘shop’ => array(
‘priority’ => 5,
‘callback’ => ‘freshio_handheld_footer_bar_shop_link’,
),
‘product1’ => array(
‘priority’ => 10,
‘callback’ => ‘freshio_handheld_footer_bar_product1_link’,
),
‘product2’ => array(
‘priority’ => 20,
‘callback’ => ‘freshio_handheld_footer_bar_product2_link’,
),
‘wishlist’ => array(
‘priority’ => 30,
‘callback’ => ‘freshio_handheld_footer_bar_wishlist’,
),November 26, 2020 at 3:03 pm #1901Bạn gửi link bạn muốn đi đến, mình sẽ thêm vào giúp bạn 😉
November 26, 2020 at 3:05 pm #1902Hiện mình chỉ cần thêm cái icon của mình vô 2 phần “Mua thịt” & “Mua Rau” ấy, chứ link mình dẫn được rồi.
November 26, 2020 at 3:08 pm #1903Bạn chọn 2 icons ở đây nhé mình sẽ giúp bạn
https://demo2.pavothemes.com/freshio/icons/November 26, 2020 at 3:10 pm #1904.freshio-icon-shopping-basket ‘này cho mua thịt
.freshio-icon-shopping-cart ‘này cho mua rau
Cảm ơn bạn!November 26, 2020 at 3:18 pm #1906Mình vừa thêm 2 icons vào cho bạn, bạn xem có muốn đổi thì bảo mình nhé
November 26, 2020 at 3:22 pm #1907Ok, mình cảm ơn nhiều nghen.
-
AuthorPosts
You must be logged in to reply to this topic.