Site logo

Archived topic

The Grid as a Template for WooCommerce

5 replies · Started by one2love on August 29, 2017

Viewing posts 1–6 of 6

Hi!

Slightly unusual request...

Using the excellent THE GRID plugin (info below) I would like to replace the default WooCommerce loop. See: https://theme-one.com/docs/the-grid/#!/grid_as_template

Instead of using a child-theme, I prefer to use the CODE SNIPPETS plugin:
https://wordpress.org/plugins/code-snippets/

A simple snippet I could use to do the thing?

I have used this plugin with Genesis a few times but it usually requires tampering with the actual theme files. I would love to keep GP fresh and clean ;)

Thanks

I think you'll need to overwrite the WC content file.

So basically, take this file and copy it into your child-theme/templates/ folder and name it the same (content-product.php).

Then place your code in it instead of the current content.

Thanks, Tom. I would have liked to do it via a snippet. Might not be possible but a man can dream, right?

I looked into it a bit, it doesn't look like you can filter the output of the loop without changing any template files. It would be super powerful if you could - I'll definitely keep an eye out :)

Perfectly cool. Was trying my luck ;)
As always - some of the best of support on the interwebs.

Thank you! :)

This archived topic is closed to new replies.