Tagged: woocommerce
- This topic has 5 replies, 2 voices, and was last updated 11 years, 9 months ago by
Sakin.
-
AuthorPosts
-
December 10, 2012 at 2:29 am #2294
msintenie
MemberHi,
I installed the woocommerce plugin. If I see the productpage, it uses the footer css instead of the normal one. How can I change this?
Her an example: http://genietendoejezo.nl/shop/wilton-bakblik-boek/
Thnx!
Michiel
December 10, 2012 at 4:26 pm #2306Sakin
Keymaster@msintenie: Simple Catch Pro theme is not ready for WooCommerce. But you can build a child theme
Crate a new child theme where you can create two files: style.css and functions.php
style.css code as below:
/*
Theme Name: Simple Catch Pro WooCommerce
Theme URI: http://catchthemes.com/themes/simple-catch-pro/
Description: Child theme for the Simple Catch Pro to suppor WooCommerce Plugin
Author: Catch Themes
Author URI: http://catchthemes.com/
Template: simple-catch-pro
*/
@import url("../simple-catch-pro/style.css");
functions.php code as below:
<?php
/**
* Adding support for WooCommerce Plugin
*
* uses remove_action to remove the WooCommerce Wrapper and add_action to add Simple Catch Wrapper
*
*/
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
add_action('woocommerce_before_main_content', 'simplecatch_child_woocommerce_start', 15);
function simplecatch_child_woocommerce_start() {
echo '<section class="page woocommerce">';
}add_action('woocommerce_after_main_content', 'simplecatch_child_woocommerce_end', 15);
function simplecatch_child_woocommerce_end() {
echo '</section></div>';
}
December 11, 2012 at 5:48 pm #2319msintenie
MemberThnx for the quick response. unfortunately the functions.php gives an error (the site doesn’t work)
December 13, 2012 at 12:50 am #2339Sakin
Keymaster@msintenie: for function.php don’t copy [php] and [/php]. Just cope the code in between.
December 13, 2012 at 2:33 am #2343msintenie
MemberI’ve tested the php script and got this error:
Parse error: syntax error, unexpected T_CLASS, expecting ‘,’ or ‘;’ on line 5 (the line with echo ‘<section class=”page woocommerce”>’;)
I don’t know how to fix this
December 13, 2012 at 12:29 pm #2354Sakin
Keymaster@msintenie: Please copy and paste it carefully. there is problem with ‘. I have given you the clear idea of how to build it. If you are not being able to create the function.php in child theme with the code then please use our “Hire A customizer” http://catchthemes.com/hire-customizer/
-
AuthorPosts
- The topic ‘Woocommerce’ is closed to new replies.