$banner_height is using store_banner_width value
-
Howdy!
In
dokan-lite/templates/settings/store-form.php
file, the height is wrong:$banner_width = dokan_get_option( 'store_banner_width', 'dokan_appearance', 625 ); $banner_height = dokan_get_option( 'store_banner_width', 'dokan_appearance', 625 );
Until the core typo is fixed, here is a temporary fix:
add_filter('dokan_banner_upload_help', function ($text) { return sprintf( __('Upload a banner for your store. Banner size is (%sx%s) pixels.', 'dokan-lite'), dokan_get_option('store_banner_width', 'dokan_appearance', 625), dokan_get_option('store_banner_height', 'dokan_appearance', 300) ); }); add_action('dokan_settings_after_form', function ($current_user, $profile_info) { ?> <style> .dokan-settings-content.dokan-settings-content .dokan-settings-area .dokan-banner .dokan-remove-banner-image, .dokan-settings-content.dokan-settings-content .dokan-settings-area .dokan-banner { height: <?php echo dokan_get_option( 'store_banner_height', 'dokan_appearance', 300 ) . 'px'; ?>; } </style> <?php }, 10, 2);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘$banner_height is using store_banner_width value’ is closed to new replies.