• Resolved Ionut Staicu

    (@iamntz)


    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);
    
    • This topic was modified 5 years, 3 months ago by Ionut Staicu.
Viewing 1 replies (of 1 total)
  • Hello,

    Sorry for the inconvenience and thanks a lot for providing the suggestion for our customers.

    We have already notified our developer about the issue, hopefully it will be fixed with next update.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘$banner_height is using store_banner_width value’ is closed to new replies.