This topic has 7 replies, 3 voices, and was last updated 4 years, 11 months ago ago by Rose Tyler
Move Filter button on the top only for mobile mode
can you help me please move the filter button from the shop page to the top of the page
Thank you very much
https://prnt.sc/qag5gy
Hello,
Add the following code to Custom CSS or child theme style.css
@media only screen and (max-width:480px){
.open-filters-btn {
position: fixed;
right: 0;
top: 120px;
background-color: #fff;
z-index: 9;
padding: 5px;
}
.open-filters-btn a i {
left: 5px;
}
}
Regards
thank you very much
but when i put the code the filter when i scroll down it moving with me, not remain fixed there!!!
https://prnt.sc/qah8ln
Hello,
Please use the next code:
@media only screen and (max-width:480px){
.open-filters-btn {
position: absolute;
right: -20px;
top: -250px;
background-color: #fff;
z-index: 9;
padding: 5px;
}
}
Regards
super and for tablet???
Hello,
Please read about media query – https://www.w3schools.com/css/css_rwd_mediaqueries.asp
You asked about mobile, so we set 480px in the code, you can change it to 768px or 992px.
Regards
You must be logged in to reply to this topic.Log in/Sign up