[Resolved] The Grid as a Template for WooCommerce

Home Forums Support [Resolved] The Grid as a Template for WooCommerce

Home Forums Support The Grid as a Template for WooCommerce

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #375237
    one2love

    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

    #375468
    Tom
    Lead Developer
    Lead Developer

    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.

    #375910
    one2love

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

    #376223
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #376555
    one2love

    Perfectly cool. Was trying my luck πŸ˜‰
    As always – some of the best of support on the interwebs.

    #376793
    Tom
    Lead Developer
    Lead Developer

    Thank you! πŸ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.