I have created a child theme and recently installed woocommerce.
I have added a sidebar-shop.php file to template, which works fine when I put dummy content into it.
In my functions file I have:
function lls_woo_before_widget(){
$content='<aside class="rightHandColumn">';
return $content;
}
add_action('init','lls_woo_before_widget');
and in sidebar-shop.php I have:
lls_woo_before_widget();
dynamic_sidebar('secondary-aside');
The function lls_woo_before_widget doesn't seem to work but the sidebar comes in fine.
Why can't I use the function from within sidebar-shop.php and how can I (I know I could just write the code into the sidebar-shop.php file...)
Thanks