Support » Plugin: WooCommerce » PHP edit help?

  • Can anyone help me with an edit for the following? I am not sure what file I should edit and how to do it. I’m using SUPERSTORE wootheme. I’ve done a bit of custom css editing, but I’m not sure how to deal with these items, I think I need to learn how to edit the PHP files (but without breaking my website). Website is not live yet so I can’t give a URL, sorry!

    1. I want to remove categories that appear under the product thumbnail on the shop page. It’s ok for these to appear on the product detail page.

    2. I want to remove the “add to cart” button on the shop page (it will be there on the product detail page).

    3. I want to remove the title “Product Description” from my product page (I don’t use the tabs, only short description, I want descriptions to be short and sweet).

    4. I want to remove the h1 home page title, and perhaps on other pages as well.

    5. I also want to edit the shop page so I can have more control over what’s displayed (I want a more concise layout, not the default sizes)

    Thanks for any help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author James Koster


    Hi there,

    1. Try adding the following to your functions.php file;

    remove_action( 'woocommerce_after_shop_loop_item', 'superstore_product_loop_categories', 2 );

    2. Add;

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );

    3. We have a tutorial for customising product tabs;

    4. There isn’t a h1 on the homepage except the logo? Need a link here really 🙂

    5. There are loads of theme options for the product layout (columns, full width, sidebar on left/right etc). Have a look 🙂

    For support of Woo products you’d be better off posting on btw.

    Thanks, Jay

    Thanks, I will give this a try, haven’t edited php yet, need to set up a child theme and copy php, etc.

    What are the “2” and “10” at the end of the remove action lines?

    I guess I need to theme the h1 tags so they are not so prominent (to humans).

    I’ve done everything I can do inside the theme from the theme options page, I want some very specific tweaks as I don’t like the basic WC look, fonts too big, too much white space, don’t want some elements to appear, etc.

    I did post on support at woothemes, but since this theme is new, there’s not much community support for it there. I am waiting for a response from woo support, they have been really, really helpful!

    I played with a 3rd party theme for a bit because I didn’t like the look of woo’s themes, but this one comes close enough that I’m willing to spend the time to really customize it myself.

    Thanks again for your help, greatly appreciated. I’ll post back if I have any difficulties or questions with this snippet.

    Thanks for your help, James. I re-explored the theme options and was able to get closer to what I wanted, at first these did not have the effect I desired.

    remove_action ('commerce_after_shop_loop_item', 'superstore_product_loop_categories', 2 );
    This didn’t seem to do anything, but somehow I have managed to remove the categories anyway (I had better figure out how! – I think it was through custom css).

    The second remove action works, but I would like to keep the PRODUCT DESCRIPTION tab. What I am looking for is to remove the tab title, it’s appearing twice on my product page. I only want it to appear once. Is there a way to remove the second one? (it’s an h2 tag)


    I lost my product description details. The tab title is still there (along with the annoying duplicate one that I want to get rid of), but all of the details (short description) are missing now.

    I took all the custom edits out of my functions.php file and uploaded it via FTP but it has not fixed the problem.

    I’m feeling blue, just like my avatar.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP edit help?’ is closed to new replies.