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. Hide Weight on Single Product Page

Hide Weight on Single Product Page

Scheduled Pinned Locked Moved Shop / WooCommerce
10 Posts 4 Posters 191 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.
  • P Offline
    P Offline
    pascal
    wrote on Sep 22, 2022, 10:49 AM last edited by pascal Sep 22, 2022, 7:13 AM
    #1

    Hello dear developers,
    I would like to hide the size and weight information on the woocommerce single product pages with css.

    Can you help me help me further?

    Best regards
    Pascal

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Sep 23, 2022, 5:25 PM last edited by
      #2

      can u post a link

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pascal
        wrote on Sep 24, 2022, 9:22 AM last edited by
        #3

        Hi Armin,
        our website is not yet online. Does this screenshot help you?

        Screenshot 2022-09-24 111955.jpg

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Sep 27, 2022, 12:13 PM last edited by
          #4

          in chrome right click on it, click "inspect element", get the html class like the selector and then do

          .selector{
          display: none;
          }

          in your custom css

          if u send me a link i can find the selector for you

          i will also write this down to create a setting in lay theme for this

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pascal
            wrote on Oct 23, 2022, 7:00 PM last edited by
            #5

            It works, thanks a lot!
            Pascal

            L 1 Reply Last reply Feb 16, 2023, 9:10 PM
            1
            • P pascal
              Oct 23, 2022, 7:00 PM

              It works, thanks a lot!
              Pascal

              L Offline
              L Offline
              lortnok
              wrote on Feb 16, 2023, 9:10 PM last edited by
              #6

              @pascal could you tell me the selector you used?

              Thanks in advance!

              1 Reply Last reply
              0
              • A Offline
                A Offline
                arminunruh
                Global Moderator
                wrote on Feb 22, 2023, 1:18 PM last edited by
                #7

                maybe ur selector is good, but maybe you need to do:

                display: none!important;
                

                instead of only

                display: none;
                
                1 Reply Last reply
                1
                • H Offline
                  H Offline
                  hayesk6
                  wrote on Mar 20, 2024, 4:53 AM last edited by
                  #8

                  I am also running into this issue on my site. Could you add screenshots of that you need to select after you click inspect element? https://hayesmade.com/product/puddleknob/

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    arminunruh
                    Global Moderator
                    wrote on Mar 20, 2024, 5:05 PM last edited by
                    #9

                    try this:

                    .woocommerce-product-attributes{
                    display: none!important;
                    }
                    
                    H 1 Reply Last reply Mar 22, 2024, 4:52 AM
                    0
                    • A arminunruh
                      Mar 20, 2024, 5:05 PM

                      try this:

                      .woocommerce-product-attributes{
                      display: none!important;
                      }
                      
                      H Offline
                      H Offline
                      hayesk6
                      wrote on Mar 22, 2024, 4:52 AM last edited by
                      #10

                      @arminunruh Thank you!

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