Doesn’t display on WooCommerce products if using a Genesis theme
-
If you are using a Genesis theme the plugin uses the
genesis_entry_header
andgenesis_entry_footer
actions. I gather these are not fired when the page is a WooCommerce product so the sharing icons are not displayed.I’m sure there is probably a better way to do this but I added the following code to the theme_location() funstion at line #54 in class-shared-counts-front.php.
// WooCommerce Hooks. if ( is_woocommerce() ) { $locations = [ 'before' => [ 'hook' => 'woocommerce_before_single_product', 'filter' => false, 'priority' => 13, 'style' => false, ], 'after' => [ 'hook' => 'woocommerce_after_single_product', 'filter' => false, 'priority' => 8, 'style' => false, ], ]; // Genesis Hooks. } elseif ( 'genesis' === get_template() ) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Doesn’t display on WooCommerce products if using a Genesis theme’ is closed to new replies.