• Resolved markwebstar

    (@markwebstar)


    How do I hide the date, category and “written by” author name on the product pages now ?

    I don’t want them to show on my site, but they seem to have appeared with the latest update …

    Thanks !

    • This topic was modified 7 years, 1 month ago by markwebstar.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    These are controlled by your theme. The latest WooCommerce update made it so WC templates use the theme’s templates by default.

    If you want it to go back to how it was before, you’ll need to create a child theme and declare WC theme support: https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes

    Else, use CSS to hide these things on product pages.

    Thread Starter markwebstar

    (@markwebstar)

    I’m not very savvy when it comes to coding and css etc. I am using a child theme, though.

    These three items are not displayed on pages or posts on the site, so why are they showing in products ?

    • This reply was modified 7 years, 1 month ago by markwebstar.
    Thread Starter markwebstar

    (@markwebstar)

    Please could someone offer some help with this problem ? Thanks !

    I have also tried to declare WC support using

    function mytheme_add_woocommerce_support() {
    	add_theme_support( 'woocommerce' );
    }
    add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );

    but this completely changes the shop pages by placing the products in the right hand column.

    • This reply was modified 7 years, 1 month ago by markwebstar.

    To hide the category, you can use this custom css:

    /* hide category */
    .product_meta {
      display: none;
    }

    Custom css can be entered at:
    Dashboard > Appearance > Customise > Additional CSS

    The dates and written by seem to be coming from the product short description.

    Thread Starter markwebstar

    (@markwebstar)

    Thanks for this – the category is not showing now.

    I don’t know what to do about the info coming from the short description but hopefully someone from woocommerce will chip in …

    Can you just not fill in the short description – leave it blank?

    If that’s not an option in your setup, you can hide it with some more custom css:

    .woocommerce-product-details__short-description {
      display: none;
    }
    Thread Starter markwebstar

    (@markwebstar)

    Thanks for trying. I do need the short description, though I did do a test of leaving it blank & the author and time stamps were still visible.

    Oh, I wasn’t looking in the right place. Try this:

    time {
      display: none;
    }
    .author {
      display: none;
    }
    Thread Starter markwebstar

    (@markwebstar)

    Yes !

    That’s it – thank you very much @lorro

    I had a slight variation to change for the author. Instead of .author I had to insert .entry-author:

    time {
    display: none;
    }
    .entry-author {
    display: none;
    }

    Ugh none of these solutions are useful – why is the author ever shown in product pages? this should be off by default. Further, adding styles to hide the author does not exclude them from search engine indexes.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Hide Date, Category and Author on Product Page’ is closed to new replies.