I am a newbie to woocommerce. I need a php code to show only product gallery images with discription in a fancybox.
please help
I am a newbie to woocommerce. I need a php code to show only product gallery images with discription in a fancybox.
please help
You must be logged in to post a comment.
Have you copied the ‘templates’ folder from woocommerce into your own custom template folder yet? If not, do so.
In that folder, create a file called ‘woo-functions.php’ or something like that. In your functions.php require this file like so:
require_once('woocommerce/woo-functions.php');
(In this scenario, I renamed the ‘templates’ folder into ‘woocommerce’.
In the woo-functions file you can remove the hooks that woocommerce are using. For example, if you want to remove the breadcrumb do:
Or, to remove things like price, meta data and sharing stuff:
All these can be found on the individual pages in which woocommerce is build. For example, you probably mostly want to customize the ‘content-single-product.php’ file. This is where most of the product page is build. The ‘remove_actions’ can be set there also, but it’s much clearer to do with this kind of method.
In the ‘content-single-product.php’ file you can also just customize the markup. So that’s probably where you want your fancybox div to go.
Extra info at:
http://docs.woothemes.com/documentation/plugins/woocommerce/woocommerce-codex/theming/
http://docs.woothemes.com/document/hooks/
Thanks Luc
This worked also in short-description.php: