Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    styling quantity and button

    Shop / WooCommerce
    2
    5
    46
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 12b
      12b last edited by

      I am trying to style the quantity input to be all white stroke and icons, but black background so it can sit on a black page.

      I would also like to reduce the overall size of the Add to Cart button. Screenshot below

      Screenshot 2023-06-01 at 13.20.14.png

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        hey!

        so the shop works best in general if you use a white background.

        try this for the add to cart button:

        .lay-woocommerce-small-buttons.single-product .single_add_to_cart_button{
        height: 32px;
        line-height: 30px;
        }
        

        quantitiy buttons:

        .lay-woocommerce-qty-wrap{
        filter: invert(1);
        -webkit-filter: invert(1);
        }
        

        Screenshot 2023-06-04 at 19.03.27.png

        12b 1 Reply Last reply Reply Quote 0
        • arminunruh
          arminunruh Global Moderator last edited by

          i think you will run into issues with other pages where you'll have some white background somwhere where it should be black

          i still need to add options for shops to look ok when using a black background

          1 Reply Last reply Reply Quote 0
          • 12b
            12b @arminunruh last edited by

            @arminunruh Nice one! This works for the quantity apart from the actual number? Screenshot 2023-06-05 at 11.26.40.png image url)

            1 Reply Last reply Reply Quote 0
            • arminunruh
              arminunruh Global Moderator last edited by

              ah i see

              probably you need some css for the number input!

              google "how to use chrome inspector"

              google "how to change text color for input"

              good luck

              for now i think its best to not use a black background color for your website if you have a shop, because you'll run into other parts of the shop that dont work well with black backgrounds

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Post a link to where the problem is if possible, please <3
              I don't answer or check forum DMs, please just post on the forum.
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

              Before you post:

              Use the Search Feature. Maybe there is already a solution to your issue.

              1. Update Lay Theme and all Lay Theme Addons
              2. Disable all Plugins
              3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
              4. When using a WordPress Cache plugin, disable it or clear your cache. Now see if your problem solved itself.
              Go here, see if your problem is listed here:
              Troubleshooting

              When you post:
              1. Post a link to where the problem is
              2. If the problem is difficult to explain, post screenshots / link to a video to explain it

              Thanks!

              Online Users

              A

              Recent Topics

              • Search as icon instead of text?

              • FILTER Categories showing all projects

              • H

                Vimeo embed with autoplay and loop is really slow...help!

              • A

                website not loading on iphone safari

              laytheme.com