How To Hide information From Single Product Page

This topic has 16 replies, 7 voices, and was last updated 8 years, 11 months ago ago by Brian Johnson

  • Avatar: Stinsonleathers
    Stinsonleathers
    Participant
    May 1, 2015 at 12:09

    How can i Hide Information from the Single product page which are
    PRODUCT INFORMATION
    Product code:
    Categories:
    and Tags
    i just want Product Name , Price and Size Guide

    15 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    May 1, 2015 at 19:52

    Hello,

    Please add this code in custom.css file:

    .single-product-page .product-info h4, .single-product-page .product-info .sku_wrapper, .single-product-page .product-info .posted_in {
     display: none;
    }

    How to create custom.css you can watch in this tutorial.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Stinsonleathers
    Stinsonleathers
    Participant
    May 1, 2015 at 23:49

    Wow Thank You Very Much very good and effective support i’m very impressed

    Avatar: sonic
    sonic
    Participant
    May 3, 2015 at 11:45

    Hi,

    great, I wanted to ask the same, thx!
    One related question:
    How is it possible to change the order of the the price and description text? So basically i want the short description text to be seen first and then the price and other information (quantity, variations…)

    Thanks in advance
    Sonic

    Avatar: stan
    Stan Russell
    Participant
    May 4, 2015 at 07:43

    Hello,

    unfortunately our theme does not have such feature by default. You only need to edit theme files for this, if you have appropriate skills.

    Regards,
    Stan Russell.

    Avatar: saphiloche
    saphiloche
    Participant
    May 9, 2015 at 18:19

    Hi,

    We would like something similar ; so we tried to paste the code you gave, but it doesn’t work, especially when a product is “variable”.
    We would like to hide “SKU” “additional info” “tags” and “categories” but we want “reviews”

    Thanks in advance,

    Avatar: Eva
    Eva Kemp
    Support staff
    May 11, 2015 at 10:16

    Hello @saphiloche,

    Add this code in custom.css file:

    .single-product-page .product-info .sku_wrapper, .single-product-page .product-info .posted_in {
     display: none !important;
    }

    How to create custom.css you can watch in this tutorial.

    Regards,
    Eva Kemp.

    Avatar: saphiloche
    saphiloche
    Participant
    May 11, 2015 at 14:41

    Hi,

    thanks for the quick response.
    but it still doesn’t work for “send to a friend” (envoyer à un ami) “SKU” (ugs) and “categories” (catégories)
    you can check it…

    Thank you,
    saphiloche

    Please, contact administrator
    for this information.
    Avatar: Brian Johnson
    Brian Johnson
    Member
    May 11, 2015 at 15:08

    Hello
    You may use this code instead:

    .single .product_meta, .single .email-link {
     display: none !important;
    }

    With best regards
    Brian Johnson

    Avatar: saphiloche
    saphiloche
    Participant
    May 11, 2015 at 15:44

    Hi,

    yesss ! it works like a charm ;o)
    thanks a lot for the quick response and the support.

    Unfortunately, I just noticed I have another issue with the cart…we have multiple “checkout” buttons
    Go to our shop, add a product then go to the cart, you’ll see

    Thanks again,
    saphiloche

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 11, 2015 at 15:48

    Hello,

    You can commented the code in the file wp-content/themes/woopress/woocommerce/cart/cart.php on line 162. Please clear browser cache and check.

    Regards,
    Robert Hall.

    Avatar: Brian Johnson
    Brian Johnson
    Member
    May 11, 2015 at 15:49

    Please add following code into the custom.css:
    .cart-collaterals{display:none}

    With best regards
    Brian Johnson

    Avatar: saphiloche
    saphiloche
    Participant
    May 11, 2015 at 15:56

    Hi,

    well, look what we have from line 162 to line 176

    line 162 = <div class=”bag-total-table”>
    <?php woocommerce_cart_totals(); ?>

    </div>
    </div>
    </div>
    </div>
    </div>

    <div class=”cart-collaterals”>

    line 174 = <?php do_action( ‘woocommerce_cart_collaterals’ ); ?>

    </div>

    We don’t think it makes a big difference but our theme is the “woopress” one, not “legenda”

    saphiloche

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 11, 2015 at 16:00

    Hello,

    Next time please don’t create post in Legenda topic.
    Did you comment out this code? < ?php do_action( 'woocommerce_cart_collaterals' ); ?>

    Regards,
    Robert Hall.

    Avatar: saphiloche
    saphiloche
    Participant
    May 11, 2015 at 16:16

    Hi,

    Really sorry about the wrong topic…we werre so happy to find one talking about “hiding”…

    Yes we did and it works, thanks a lot.

    Thanks a lot,
    saphiloche

    Avatar: Brian Johnson
    Brian Johnson
    Member
    May 11, 2015 at 16:22

    You are always welcome!

    With best regards
    Brian Johnson

  • Viewing 16 results - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.