Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1349919
    afungusboy
    Participant

    I 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?

    #1349921
    afungusboy
    Participant
    This reply has been marked as private.
    #1350221
    Lely
    Moderator

    Hi 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.

    #1350701
    afungusboy
    Participant

    That worked, thanks!

    #1350709
    Paul R
    Moderator

    You’re welcome! 🙂

    #1351195
    afungusboy
    Participant

    One 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)?

    #1351364
    Jade
    Moderator

    Hi there,

    Please try this code:

    @media (max-width: 480px) {
        .global_3_pane .amount {
            display: none;
        }
    }

    Hope this helps.

    #1351389
    afungusboy
    Participant

    Cool. Thank you!

    #1351452
    Nico
    Moderator

    Happy to hear that.

    Feel free to let us know how it goes.

    THanks.

  • <script> jQuery(function($){ $("#no-reply-1349919 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>