ResolvedMove search / shopping cart in Mobile version
- This topic has 13 replies, 2 voices, and was last updated 2 years, 6 months ago by
kidloop.
- AuthorPosts
- September 21, 2020 at 2:42 pm #25878
kidloop
ParticipantHi,
In the mobile version i have a Search / Shop card in the right bottom corner. Can i move it slightly up as have facebook messenger right on that place?
I think that need to modificate that parameters:
@media only screen and (max-width: 768px)
.lafka-search-cart-holder {
right: 20px;
top: auto !important;
bottom: 20px;
position: fixed;
width: 48px;
padding: 6px;
}But in style.css in lafka child changes don’t appear.
September 22, 2020 at 8:59 am #25883Althemist
KeymasterHello kidloop,
You can adjust the position by changing the
bottom: 20px;
parameter – e.g. if you need to move it 50px higher, just set it tobottom: 70px;
.Hope this helps.
Regards,
DimitarSeptember 23, 2020 at 7:59 am #25908kidloop
ParticipantHi Dimitar,
I change parameters, made padding 200px. But in mobile version nothing happends, but in web this menu moved down in the middle of screen(
September 23, 2020 at 4:22 pm #25918Althemist
KeymasterYou should not increase the padding. You’d need to change the position with the bottom: parameter. As for the mobile version – make sure you cleared your mobile browser cache.
September 24, 2020 at 12:08 pm #25957kidloop
ParticipantSorry i mean that change bottom and made it 200 px… But in the web version it moved to the middle of the page and on mobile nothing happens. and i don’t know how to put it back…
September 24, 2020 at 12:18 pm #25958kidloop
ParticipantSorry, forget last message,
problem is that i use next code in style.css:
.lafka-search-cart-holder {
bottom: 80px;
}And there are no changes…
September 24, 2020 at 3:09 pm #25960Althemist
KeymasterYou can’t use it like this. The mobile display is controlled with a media query:
@media only screen and (max-width: 768px) { .lafka-search-cart-holder { bottom: 80px; } }
September 24, 2020 at 4:20 pm #25963kidloop
ParticipantI put it in style.css but no effect…
September 24, 2020 at 5:02 pm #25964Althemist
KeymasterIn which style.css?
September 25, 2020 at 12:00 pm #25987kidloop
ParticipantIn the child theme – Appearance – Theme edit and i add a code to style.css
Lafka Child: Stylesheet (style.css)September 25, 2020 at 4:23 pm #25992Althemist
KeymasterThe code I gave you should work perfectly. Make sure you clear your phone cache, though.
Anyways, editing a theme directly in the WordPress admin is not best approach, not to mention it’s a huge security hole.
September 26, 2020 at 1:26 pm #26001kidloop
ParticipantHi, pls try om mobile https://okpizza.vn – not works…
Abt editing in child theme – is there are other option to insert that code?
September 28, 2020 at 8:39 am #26016Althemist
KeymasterThe responsive CSS is loaded after the child theme css, so you’d need to use
!important
in order to make it work.September 28, 2020 at 1:06 pm #26036kidloop
ParticipantThank you! Its work
- AuthorPosts
You must be logged in and have valid license to reply to this topic.