Tagged: x
-
AuthorPosts
-
January 29, 2017 at 4:09 pm #1349919
afungusboyParticipantI need to remove the initial padding and the ending border for a widget area. I’m currently using the following to remove the padding and borders in-between:
.x-main .widget ul li, .x-main .widget ul li a { border: none; padding: 0; margin: 0;}What do I need to add to target the 1st and last child in the widget?
January 29, 2017 at 4:16 pm #1349921
afungusboyParticipantThis reply has been marked as private.January 29, 2017 at 10:02 pm #1350221
LelyModeratorHi There,
We can use the following CSS selector:
.x-main .widget ul li:first-child, .x-main .widget ul li:last-child, .x-main .widget ul li a:first-child, .x-main .widget ul li a:last-child { background: red; /*CSS property here*/ }Hope this helps.
January 30, 2017 at 7:50 am #1350701
afungusboyParticipantThat worked, thanks!
January 30, 2017 at 7:52 am #1350709
Paul RModeratorYou’re welcome! 🙂
January 30, 2017 at 1:13 pm #1351195
afungusboyParticipantOne other thing: what is the best way to remove the product price from that woocommerce recently viewed widget when viewed only on a phone (I want to keep for all other sizes)?
January 30, 2017 at 3:23 pm #1351364
JadeModeratorHi there,
Please try this code:
@media (max-width: 480px) { .global_3_pane .amount { display: none; } }Hope this helps.
January 30, 2017 at 3:53 pm #1351389
afungusboyParticipantCool. Thank you!
January 30, 2017 at 4:57 pm #1351452
NicoModeratorHappy to hear that.
Feel free to let us know how it goes.
THanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1349919 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
