Plugin Support
Hannah S.L.
(@fernashes)
Automattic Happiness Engineer
Hey there!
To edit the product category template, you’ll want to make a copy of the file into your child theme – it sounds like that went fine.
When you say that “neither worked”, what went wrong? Is there an error? What happens if you try to make a small change?
I’m not a developer myself, but let’s see how far we can get.
Thread Starter
mfmdc
(@mfmdc)
I’ve read conflicting information on which template file is the product category page that I’m referencing above, so I tried on these four:
content-product.php
taxonomy-product-cat.php
archive-product.php
content-product-cat.php
Nothing happened—meaning the changes I implemented did not show up.
Thanks!
Plugin Support
Hannah S.L.
(@fernashes)
Automattic Happiness Engineer
Hey there,
It depends on exactly which part of the template you’d like to modify. Usually, the archive-product is the correct one, though.
What happens if you modify the files directly in the parent theme? It’s not recommended for real changes as the changes will be overwritten when you update the theme – but in this case, it could be useful for testing.
Thread Starter
mfmdc
(@mfmdc)
Good idea—I hadn’t, but just tried that and nothing happened.
I’m trying to add this menu bar to the page, which is through a plugin:
<?php if ( function_exists( 'groovy_menu' ) ) { groovy_menu(); } ?>
But, to test that it isn’t an issue with that specific code, I also just put random stuff in there—nothing shows up. I’m starting to feel like a crazy person.
Plugin Support
Hannah S.L.
(@fernashes)
Automattic Happiness Engineer
Hey there,
I’m afraid I can’t help with specific code adjustments, I’m not a developer myself.
If none of your changes are showing up at all, I wonder if your child theme is correctly set up. Here’s a good place to review the setup:
https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/
It’s an older article, but this approach hasn’t changed in quite a few years.
You could also test to make sure the child theme is working by making other changes. A good way to test that would be to add custom styles or a custom functions.php file – when you make changes, they should up on your site. if they don’t show up, then something is likely not working correctly with the child theme.
Without being able to see the backend of your site, it’s hard to know where things are going wrong. So for further help:
* In regards to child themes in general, I’d recommend asking in the general WordPress.org forums: https://wordpress.org/support/forum/miscellaneous/
* If you need more help with customizing WooCommerce itself, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/
I hope that helps you in the right direction!