• Resolved tamirvcd5000

    (@tamirvcd5000)


    Hey everyone,
    I wanted to know if I could get some help deleting the “description” title from the product page, not the whole tab just the title, and also how to delete the “category” button that appears below the add to cart button.
    thanks a lot ?? !!

Viewing 7 replies - 1 through 7 (of 7 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @tamirvcd5000 I believe you are referring to these two items:


    Link to image: https://cld.wthms.co/qem1jJ

    Both of these are controlled through the WooCommerce templates themselves. In order to removed them you would need to create a child theme, or use an existing one, then override the templates.

    Child theme information: https://codex.www.ads-software.com/Child_Themes
    Existing child theme: https://github.com/stuartduff/storefront-child-theme
    Overriding templates: https://docs.woocommerce.com/document/template-structure/

    The templates you want to override are:

    /woocommerce/single-product/meta.php
    /woocommerce/single-product/tabs/description.php
    Thread Starter tamirvcd5000

    (@tamirvcd5000)

    Sorry for the late reply
    thanks a lot but I didnt understand what should I do next, I found the files on the link but whats next?

    I have another question if I may…
    when I’m optimizing for SEO and need to tag certain paragraphs as H1 tags it makes the font disproportionally bigger, any suggestions or guides to deal with it?
    I looked for the code in functions.php but didnt find.
    thanks in advance

    • This reply was modified 6 years, 5 months ago by tamirvcd5000.
    • This reply was modified 6 years, 5 months ago by tamirvcd5000.
    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @tamirvcd5000 Wrapping whole paragraphs in H1 tags may not be the best solution, but I am not an SEO pro. All I could suggest would be to add a class to the H1 tags and then reduce the font size through css rules.

    Thread Starter tamirvcd5000

    (@tamirvcd5000)

    Not all paragraphs only some
    about the first question – I didn’t understand what are the next steps after accessing the file mentioned above.

    Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @tamirvcd5000 Jesse was pointing out above that those are the template files that contain the two elements you want to edit out. You’d have to dive into the code of those two templates and remove the corresponding code that is inserting those elements.

    Be careful when doing so, specially if you do not feel very comfortable editing code. It might be wise to test this out on a staging site first (you can create one using a plugin like WP-Staging), before making these changes on your live site.

    Hi you can add the below CSS rule-sets to have them no longer displayed. They aren’t deleted, just not shown. If you have a child theme you can insert into your .css document or through the Customizer by pasting into “Additional CSS”.

    /* remove category */
    .single-product .product .product_meta span.posted_in {
        display: none;
    }
    
    /* remove "Description" h2 from description tab */
    .woocommerce-tabs #tab-description h2 {
        display: none;
    }

    HI i need help, i need to delete whole description from my all listings that i import. how do i do that.
    and i want to keep the description of those products that are listed manually not imported.
    so whats the way please tell

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to delete description title from product page’ is closed to new replies.