Tagged: CSS, enfold, product slider, resize, woocommerce
-
AuthorPosts
-
October 15, 2013 at 12:28 am #175353
Hi, I’ve a site and I want use enfold for it. The question is How can I create a custom catalog pages override the woocommerce templates? I use a child enfold theme. The site is bfsb2b.com
- This topic was modified 11 years, 1 month ago by alkross.
October 15, 2013 at 6:33 am #175473Hey alkross!
You can use the Advance Layout Builder. Create a page then add the Product Grid or the Product Slider under Plugin Additions panel. Don’t set a Shop Base Page on Woocommerce Settings.
Cheers!
IsmaelOctober 15, 2013 at 8:53 am #175511Thanks for your answer. I know this. But Is it possible create a woocommerce template page for create a layout like my category pages?
In my old theme I override woocommerce templates into my child theme. In enfold is it possible?
Best regardsOctober 16, 2013 at 4:49 am #176174Hey!
Yes, of course! You can add in your own WooCommerce templates following this guide: http://docs.woothemes.com/document/template-structure/
Regards,
DevinOctober 16, 2013 at 3:12 pm #176459But If I create a template into enfold-child/woocommerce I get anyway some style or configuration from config-woocommerce into enfold theme.
For example the class avia_cart_buttons override my button style.
Original site: bfs.nonzero.it/business/
Restyling site: bfs2.nonzero.it/business/
Seem like enfold-child theme and woocommerce template theme is woocommerce config into parent enfold themeOctober 17, 2013 at 3:38 am #176810Hey!
I’m sorry but I don’t understand exactly what you want. You can override certain elements css on the child theme’s style.css file.
Best regards,
IsmaelOctober 17, 2013 at 11:21 am #176947October 17, 2013 at 11:28 am #176948I try to explain: config.php in enfold’s config- woocommerce folder had some functions to create shop pages that ovveride (or merge) with the woocommerce template that I uploaded info enfold-child.
RegardsOctober 18, 2013 at 10:23 am #177329Hello!
The child theme code (functions.php) will be loaded before the parent theme code. I suggest to use the after_setup_theme hook to overwrite the woocommerce functions in config.php. I.e. let’s assume you want to overwrite the avia_woocommerce_thumbnail() function in config.php. In this case you can use following code to deregister the default function and to replace it with your function
add_action( 'after_setup_theme', 'enfold_woocommerce_child_theme_code' ); function enfold_woocommerce_child_theme_code() { remove_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail', 10); add_action( 'woocommerce_before_shop_loop_item_title', 'avia_woocommerce_thumbnail_child_theme', 10); function avia_woocommerce_thumbnail_child_theme($asdf) { echo "Yippi, I'm the child theme..."; } }
Basically you just need to copy paste the original function from the child theme, then rename it and modify the function code. Then remove the default action and add your custom function with add_action.
Regards,
PeterOctober 18, 2013 at 4:48 pm #177477Thank you Peter and all support team.
-
AuthorPosts
- The topic ‘Woocommerce catalog page’ is closed to new replies.