I’m trying to achieve a few things for my WooCommerce enabled WP installation.
- Sticky navbar
- Add cart to navbar
1. Sticky navbar
I tried this tutorial already available here, but seems to have a few issues.
Primarily I’m having 3 items in my navbar which contains dropdown list + 1 cart to be added to right end of primary navbar. The code mentioned in the above article makes the items in navbar to float in the center. I need it to be on the left. I can do it be using specific values instead of the
margincalculate parameter. But whatever margin value I give it doesn’t take effect.
Another issue with sticky navbar is even it have is sticking to the top when I scroll, the content in other div appears to be above it such that the navbar is in a layer below the content.
How do I tackle this?
2. Add cart to navbar
I’m looking to add a cart to my navbar as in rtCamp’s site. Any thoughts on this?