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. Cart Link

Cart Link

Scheduled Pinned Locked Moved Shop / WooCommerce
9 Posts 3 Posters 275 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.
  • D Offline
    D Offline
    dingdong
    wrote on Apr 13, 2021, 12:35 PM last edited by dingdong Apr 13, 2021, 8:44 AM
    #1

    Hey!
    Thanks for introducing woo on laytheme!!!
    I just set up a little online shop and i wanted to know if its possible that "Carts(1)" only appears when i am on the "Shop-page"?
    As I am a photographer it makes no sense to have "Cart" in the menu all the time...
    I tried some plugins to have the 3rd or 4th menu appear when clicking "Shop" but that doesnt work. To link it in the text above the images also doenst work so the "Sidecart Plugin" pops in.
    any ideas?

    In Side Cart-Plugin i tried "Do not show cart on pages: no-woocommerce" but of course the menu still shows "Cart" but doesnt open it...

    alt text

    1 Reply Last reply
    0
    • E Offline
      E Offline
      edgrbnz
      wrote on Apr 13, 2021, 3:01 PM last edited by edgrbnz Apr 13, 2021, 11:01 AM
      #2

      True… this should be a future-feature, I guess.

      For now you could hide ›Cart‹ via page/slug specific CSS, which is well documented over here .

      ✦ ✦ ✦

      1 Reply Last reply
      2
      • A Offline
        A Offline
        arminunruh
        Global Moderator
        wrote on Apr 13, 2021, 4:09 PM last edited by
        #3

        thanks @edgrbnz yea I was going to recommend the same

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dingdong
          wrote on Apr 15, 2021, 12:03 PM last edited by
          #4

          @edgrbnz @arminunruh thx!
          i‘m not that good in html/css but i tried.
          so i managed to hide 3rd menu, because if i hide only one "link" in my main menu, there is some white space (or am i doing anything wrong?)
          is there also a possibility to "only show" on [data-type="page"][data-id="2048"] for example?
          so this is my code to hide 3rd menu from several pages and all categories / projects:

          body[data-type="page"][data-id="662"] nav.laynav.position-top.is-fixed.third_menu{
              display: none !important;
          }
          
          body[data-type="page"][data-id="2048"] nav.laynav.position-top.is-fixed.third_menu{
              display: none !important;
          }
          
          body[data-type="page"][data-id="2042"] nav.laynav.position-top.is-fixed.third_menu{
              display: none !important;
          }
          
          body[data-type="category"] nav.laynav.position-top.is-fixed.third_menu{
              display: none !important;
          }
          
          body[data-type="project"] nav.laynav.position-top.is-fixed.third_menu{
              display: none !important;
          }
          

          this is to hide the cart icon:

          body[data-type="page"][data-id="662"] .lay-cart-icon-wrap{
              display: none !important;
          }
          body[data-type="page"][data-id="2048"] .lay-cart-icon-wrap{
              display: none !important;
          }
          
          body[data-type="page"][data-id="2042"] .lay-cart-icon-wrap{
              display: none !important;
          }
          
          body[data-type="category"] .lay-cart-icon-wrap{
              display: none !important;
          }
          
          body[data-type="project"] .lay-cart-icon-wrap{
              display: none !important;
          }
          

          www.mikeabmaier.com

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Apr 15, 2021, 12:24 PM last edited by
            #5

            oh

            I would do it the other way around

            I would always hide the menu that contains the cart

            and then only show it on the shop page like

            nav.third_menu{
                display: none;
            }
            body.id-222 nav.third_menu{
                display: block;
            }
            
            
            D 1 Reply Last reply Apr 15, 2021, 12:27 PM
            0
            • A arminunruh
              Apr 15, 2021, 12:24 PM

              oh

              I would do it the other way around

              I would always hide the menu that contains the cart

              and then only show it on the shop page like

              nav.third_menu{
                  display: none;
              }
              body.id-222 nav.third_menu{
                  display: block;
              }
              
              
              D Offline
              D Offline
              dingdong
              wrote on Apr 15, 2021, 12:27 PM last edited by
              #6

              @arminunruh
              haha thats perfect, thx!!
              btw, you can‘t rename Navigation Label for "Cart" in the menu...

              1 Reply Last reply
              0
              • A Offline
                A Offline
                arminunruh
                Global Moderator
                wrote on Apr 15, 2021, 12:32 PM last edited by
                #7

                @dingdong said in Cart Link:

                btw, you can‘t rename Navigation Label for "Cart" in the menu...

                ah yea need to fix this

                1 Reply Last reply
                1
                • A Offline
                  A Offline
                  arminunruh
                  Global Moderator
                  wrote on Apr 16, 2021, 12:39 PM last edited by
                  #8

                  So

                  I tried it and you can change the cart label to anything you want no?
                  Just here
                  Screenshot 2021-04-16 at 14.35.49.png

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dingdong
                    wrote on Apr 17, 2021, 6:41 AM last edited by
                    #9

                    @arminunruh said in Cart Link:

                    I tried it and you can change the cart label to anything you want no?

                    @arminunruh yes, after i did the update it works...
                    thanks for your great support!

                    1 Reply Last reply
                    1
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes

                    5/9

                    Apr 15, 2021, 12:24 PM


                    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
                    M
                    MWPA
                    5 minutes ago
                    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.
                    5 out of 9
                    • First post
                      5/9
                      Last post
                    0
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Search