Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Shop / WooCommerce
  3. styling quantity and button

styling quantity and button

Scheduled Pinned Locked Moved Shop / WooCommerce
5 Posts 2 Posters 450 Views
  • 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.
  • 12b1 Offline
    12b1 Offline
    12b
    wrote on last edited by
    #1

    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
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      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

      12b1 1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        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
        0
        • arminunruhA arminunruh

          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

          12b1 Offline
          12b1 Offline
          12b
          wrote on last edited by
          #4

          @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
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            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
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            I also code custom websites or custom Lay features.
            šŸ’æ Email me here: šŸ’æ
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

            This often solves issues you might run into

            When you post:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            StridexS
            Stridex
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search