Ich wollte das hier machen:
http://docs.woothemes.com/document/third…ity/#usinghooks
muss ich in meine functions.php das hier irgendwo einfügen?
Code
[COLOR=#333333][FONT=Consolas]remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);[/FONT][/COLOR]
[COLOR=#333333][FONT=Consolas]remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);[/FONT][/COLOR]
und wo muss ich das hier einfügen? habe ich nicht ganz versanden:
Code
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);[COLOR=#333333][FONT=Consolas]add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);[/FONT][/COLOR]
[COLOR=#333333][FONT=Consolas]function my_theme_wrapper_start() {[/FONT][/COLOR]
[COLOR=#333333][FONT=Consolas] echo '<section id="main">';[/FONT][/COLOR]
[COLOR=#333333][FONT=Consolas]}[/FONT][/COLOR]
[COLOR=#333333][FONT=Consolas]function my_theme_wrapper_end() {[/FONT][/COLOR]
echo'</section>';