WPPizza – A Restaurant Plugin for WordPress › Support › General Support › sticky cart offset pixel from top
- AuthorPosts
- 8 January, 2015 at 7:27 pm #6916
Hi olly,
I have a one (scroll) page layout and it starts with a video, where I obviously don’t want to have the sticky cart floating around.
Only after around approx.1000px scrolled down it should appear together with the menu.
I would use a non sticky cart but the menu is very long and it would be nice to have the cart sticking around 😉
So it would be great to be able to set the offset when the sticky cart starts appearing.
Do you think it is something easy to achieve?I think the ID field you have set up should be doing the opposite of what it is doing right now. to have the shopping cart not scroll further top not down ” and only appearing from a certain ID on.
I hope you can follow what I’m trying to explain 🙂
take a look here:
http://karawane-berlin.org/tahtit/btw you should still have the login in case you want to have a look at the settings 😉
thanks
daniel8 January, 2015 at 7:29 pm #6917another thing:
the pick up delivery checkbox is out of the sticky cart position fixed because it is in another div.8 January, 2015 at 8:43 pm #6920ignoring that fact that i works just fine on many themes that have a “normal” layout where it doesn’t go higher than its surrounding container (try twentytwelve and you’ll see that it is never further up than the top of the sidebar) i will just not spend any more time on this sticky cart thing as it’s a losers game and will never work on all layouts. (not even thinking about responsive layouts which have their own requirements)
if it works as is for someone, fine. if it doesn’t you have to find your own implementation for your particular theme
8 January, 2015 at 8:50 pm #6921furthermore, instead of messing around with animations and calculations and whatnot , it would be A LOT easier to write a few lines of code for a particular theme rather than me trying to cater for all…
8 January, 2015 at 11:03 pm #6927just another bit of a hint (while i ‘m at it ) maybe my comment here regarding “wppizza-cart-fixed” might help too somewhat
https://www.wp-pizza.com/topic/sidebar-cart-scrolling-background/#post-6926
9 January, 2015 at 7:03 pm #6964ok I understand, makes sense that you can’t alter every theme out there 🙂
best
daniel - AuthorPosts
- The topic ‘sticky cart offset pixel from top’ is closed to new replies.