Home › Forums › WoodMart support forum › Footer tablet
Footer tablet
- This topic has 7 replies, 2 voices, and was last updated 4 years ago by
Elise Noromit.
-
AuthorPosts
-
February 1, 2021 at 8:21 pm #263091
RachidParticipanthow can make the footer with an accordion for tablet? viewpoint just like the mobile viewpoint
Please check the attached screenshot
Thanks
Attachments:
You must be logged in to view attached files.February 1, 2021 at 11:09 pm #263114
Elise NoromitMemberHello,
You need the Footer to be in widgets and you can enable collapse of the widgets on mobile in the Theme Settings > Footer.
If you created the Footer as an HTML block it would not work.
Best Regards
February 2, 2021 at 8:05 am #263179
RachidParticipantHi
Thank you for the reply!
as stated in my first topic! i have it on mibile and i need for Tablet! and i have also as widgetbut i need this to be also collapsed for Tablet viewpoint
February 3, 2021 at 10:02 am #263487
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Tablet:
.footer-widget-collapse > *:not(.widget-title):not(:first-child) { display: none; margin-top: 20px; } .footer-widget-collapse .widget-title { position: relative; margin-bottom: 0; padding-right: 22px; } .footer-widget-collapse .widget-title:after { position: absolute; top: calc(50% - 12px); right: 0; width: 24px; height: 24px; border-radius: 50%; color: #333; vertical-align: middle; text-align: center; font-weight: 600; font-size: 10px; line-height: 24px; transition: all .25s ease; content: "\f129"; font-family: "woodmart-font"; } .footer-widget-collapse.footer-widget-opened .widget-title:after { background-color: #F9F9F9; transform: rotate(180deg); } .color-scheme-light .footer-widget-collapse .widget-title:after { color: #FFF; } .color-scheme-light .footer-widget-collapse.footer-widget-opened .widget-title:after { background-color: #FFF; color: #333; }
Add this code to the Theme Settings > Custom JS:
jQuery('.footer-widget-collapse .widget-title').on('click', function() { var $title = jQuery(this); var $widget = $title.parent(); var $content = $widget.find('> *:not(.widget-title)'); if ($widget.hasClass('footer-widget-opened')) { $widget.removeClass('footer-widget-opened'); $content.stop().slideUp(200); } else { $widget.addClass('footer-widget-opened'); $content.stop().slideDown(200); } });
Best Regards
February 5, 2021 at 9:30 am #264135
RachidParticipantHi there!
this doesn’t work and it changes the layout of the footer completely and also appear in the desktop!
i just want the footer to break and look with accordion just like in mobile
February 5, 2021 at 3:07 pm #264242
Elise NoromitMemberHello,
Please make sure you have inserted the CSS code in the proper section: not General/Desktop only Tablet.
Please add this custom CSS accordingly:
footer .footer-column.col-sm-6 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; } footer .footer-column.col-sm-4 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; }
If you still have the problem, please update your access, I cannot log in with old credentials.
Best Regards
February 7, 2021 at 9:43 am #264517
RachidParticipantPerfect! this has worked
February 7, 2021 at 1:10 pm #264546
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register