temash
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] variation products images issues woocommreceAdd this fix to functions.php:
if ( ! function_exists( 'fix_single_product_image_sizes') ) { function fix_single_product_image_sizes() { $sizes = wc_get_image_size( 'woocommerce_single' ); if ( ! $sizes['height'] ) { $sizes['height'] = $sizes['width']; } return array( $sizes['width'], $sizes['height'] ); } add_filter( 'woocommerce_gallery_thumbnail_size', 'fix_single_product_image_sizes' ); }- This reply was modified 7 years, 7 months ago by temash.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] WordPress CompatibilityHi Derek,
When can we expect new version with checkbox patch? Approximate dates?Thanks
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] WordPress CompatibilityThanks for the quick response and your great plugin. I’ll wait for the new version.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] WordPress CompatibilityHello Derek, the same question. Try to make OptionTree as a theme included module. Created includes/theme-options.php for that. How to make checkbox checked by default. Code example:
array( 'id' => 'search_on_off', 'label' => 'Search Block Show/Hide', 'desc' => 'Check to Show Search block', 'std' => '', 'type' => 'checkbox', 'section' => 'general_default', 'choices' => array( array( 'value' => 'On', 'label' => 'On', 'src' => '' ) ), ),‘std’ => ‘On’, – not work
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Fatal Error with declaring this pluginMake the following, open /libraries/theme-options.php and remove this lines:
// If get_option_tree function does not exist (plugin not installed)
// Return false to suppress errors in the theme where the function is used
if ( ! function_exists( ‘get_option_tree’) ) {
function get_option_tree() {
return false;
}
}