How To Hide information From Single Product Page

15 replies7 participantsUpdated by Brian Johnson

  • Avatar: Stinsonleathers
    Stinsonleathers
    Participant

    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
    Participant

    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

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

    Avatar: sonic
    sonic
    Participant

    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

    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

    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
    Participant

    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

    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

    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

    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
    Participant

    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

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

    With best regards
    Brian Johnson

    Avatar: saphiloche
    saphiloche
    Participant

    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
    Participant

    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

    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

    You are always welcome!

    With best regards
    Brian Johnson

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register