Support » Theme: Storefront » WooCommerce demo store notice

  • Resolved TokoDaring.Com

    (@wpjakarta)


    Hello folks,

    id like to know how to make WooCommerce demo store notification to only appear on pc not appear on mobile.

    what i’m done currently now, is adding this css code and as expected what i want.
    since i’m not a person who come from programming field, please correct me if this css code i’m add is wrong or lack or you may suggest the most correct code ?

    @media only screen and (max-width:767px) {
    .demo_store {
        visibility: hidden;
        clear: both;
        display: none;
        }
    }

    thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @wpjakarta

    That code should work, though it will not detect if a device is mobile, but rather just check the screen width. That means it will still display on mobile devices where the screen is bigger than 768 pixels wide.

    Thread Starter TokoDaring.Com

    (@wpjakarta)

    hi @senff
    thank you,

    yes i think it worked, currently run like what i want.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce demo store notice’ is closed to new replies.