Home › Forums › WoodMart support forum › Sticky off canvas sidebar button ISSUE
Sticky off canvas sidebar button ISSUE
- This topic has 19 replies, 3 voices, and was last updated 6 years, 10 months ago by
Elise Noromit.
-
AuthorPosts
-
June 13, 2018 at 3:31 pm #62758
mihaelabuhParticipantI have disabled Sticky off canvas sidebar button
On categories pages it shows ok, but if you are on tags archive page or attribute archives page or pages it shows.
I don’t want to show it, how to achive that?June 13, 2018 at 4:45 pm #62765
Elise NoromitMemberHello,
Please provide URLs with the problem.
Best Regards
June 13, 2018 at 6:19 pm #62787
mihaelabuhParticipanthttps://ham-bebe.ro/magazin-jucarii/covorase-puzzle/
https://ham-bebe.ro/magazin-jucarii/loc-de-joaca/on mobile view, and tablet view of course
June 13, 2018 at 7:22 pm #62801
Elise NoromitMemberHello,
Please enter Theme settings > Shop > SIDEBAR & PAGE TITLE and make sure you have the same settings as shown: https://gyazo.com/9abd0e18091c982755073be9cbd6ef2b
If you have set the same option but the problem remains, contact us with your site admin access. Access provided earlier is not workable.
Best Regards
June 14, 2018 at 5:00 am #62846
mihaelabuhParticipantI tried and still that button shows.
I don’t know if you at least had a look on my pages. That sticky button that opens sidebar only shows on the tags archive, brands archives etc. if on shop or category pages it dosn’t show ( it’s disabled form backend )I think you should take a look at how you declared that sticky thing
is_shop() || is_product_category()Attachments:
You must be logged in to view attached files.June 14, 2018 at 6:26 am #62853
Artem TemosKeymasterPlease, provide us your admin access so we can login and check this on your side.
Thank you in advance.
June 15, 2018 at 12:45 pm #63084
mihaelabuhParticipantPrivate content
June 15, 2018 at 12:47 pm #63086
mihaelabuhParticipantJune 15, 2018 at 1:36 pm #63092
Elise NoromitMemberHello,
Please add this snippet to function.php of your child theme:
function woodmart_sticky_sidebar_button() { $sidebar_class = woodmart_get_sidebar_class(); if ( strstr( $sidebar_class, 'col-md-0' ) ) return; if ( ( woodmart_woocommerce_installed() && ( is_shop() || is_product_category() || is_product_tag() || is_tax( woodmart_get_opt( 'brands_attribute' ) ) ) && woodmart_get_opt( 'sticky_filter_button' ) && ( woodmart_get_opt( 'shop_hide_sidebar' ) || woodmart_get_opt( 'shop_hide_sidebar_tablet' ) ) ) ) { echo '<a href="#" class="woodmart-sticky-sidebar-opener shop-sidebar-opener"></a>'; } elseif ( woodmart_get_opt( 'hide_main_sidebar_mobile' ) && ( ! woodmart_woocommerce_installed() || ( ! is_shop() && ! is_product_category() && ! is_product_tag() && ! is_tax( woodmart_get_opt( 'brands_attribute' ) ) ) ) ) { echo '<a href="#" class="woodmart-sticky-sidebar-opener"></a>'; } } add_action( 'wp_footer', 'woodmart_sticky_sidebar_button', 200 );
We shall fix this in our nearest update.
Best Regards
June 15, 2018 at 1:37 pm #63094
mihaelabuhParticipantthank you for support
June 15, 2018 at 1:45 pm #63097
mihaelabuhParticipantadded the code, works of, but now i have that sticky button on product page, see screenshot
Attachments:
You must be logged in to view attached files.June 15, 2018 at 2:33 pm #63107
Elise NoromitMemberHello,
Please clean your cache and check again. We have viewed the product page and do not see it http://prntscr.com/jvcrvg
Best Regards
June 15, 2018 at 2:43 pm #63110
mihaelabuhParticipantthe cache was cleared, i have wp rocket and cleared it.
i checked on google pagespeed because they offer a preview, and the button is present, check attachedAttachments:
You must be logged in to view attached files.June 15, 2018 at 3:30 pm #63125
Elise NoromitMemberHello,
We have checked in different devices from the different location this is the print screen from mobile http://prntscr.com/jvdi97
Wait a few hours and we shall check again.
Best Regards
June 15, 2018 at 4:36 pm #63142
mihaelabuhParticipantYou cant see it because i have deleted the code from functions, as i dont want to have it live with that button, so now you cant see it of course.
Please check back to your code,June 15, 2018 at 5:44 pm #63151
Elise NoromitMemberJune 15, 2018 at 6:01 pm #63158
mihaelabuhParticipantDid you read what i wrote? You can t see because i havent add your code to my functiins, if i add it then the button shows
June 15, 2018 at 6:29 pm #63160
Elise NoromitMemberHello,
Please add the code so that we could check.
Best Regards
June 16, 2018 at 5:01 am #63173
mihaelabuhParticipantso, i added the code to functions, but deleted this part:
elseif ( woodmart_get_opt( ‘hide_main_sidebar_mobile’ ) && ( ! woodmart_woocommerce_installed() || ( ! is_shop() && ! is_product_category() && ! is_product_tag() && ! is_tax( woodmart_get_opt( ‘brands_attribute’ ) ) ) ) ) {
echo ‘‘;
}NOW IT SHOWS OK, AS IT SHOULD.
MAYBE YOU SHOULD CHECK WHY, I NOTICED THIS CLASS WAS DISPLAYING THAT UNWANTED BUTTON: class=”woodmart-sticky-sidebar-opener”June 16, 2018 at 7:55 am #63180
Elise NoromitMemberHello,
We are glad you have solved the issue. If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘Sticky off canvas sidebar button ISSUE’ is closed to new replies.
- You must be logged in to create new topics. Login / Register