Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

splashingpixels.com on "[Plugin: WooCommerce - excelling eCommerce] Forcing WC Products to use Pages instead of Posts?"

$
0
0

This is not difficult to do but will take several trial and error because every theme is a bit different.

First you need to mimic the container your page uses ( the one in the white box ). So find how it is constructed in terms of the outer most wrapper container and then use the following hooks.

'woocommerce_before_main_content'
'woocommerce_after_main_content'

Those hooks are quite self-explanatory so the first hook you will inject the beginning of your white box's outer container code. And the second hook you close the container with the white box's closing outer container code.

That is the first step in making this work. Try that and see how it goes.

So what this does is whenever you're on a product category page, it will use these action hooks to manipulate the HTML.


Viewing all articles
Browse latest Browse all 104029

Trending Articles