最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Woocommerce - blockUi style - Stack Overflow

programmeradmin1浏览0评论

When performing the Ajax request, blockUI adds style to the blocks of checkout form and cart – styles: “background: ‘#fff'”. My entire website is in black color and I never wanted the background of the blocks style to white. How can I remove this styles without modifying the woomerce js files ? It's part of woomerce javascript which makes me a headache:

/**
     * Block a node visually for processing.
     *
     * @param {JQuery Object} $node
     */
    var block = function( $node ) {
        if ( ! is_blocked( $node ) ) {
            $node.addClass( 'processing' ).block( {
                message: null,
                overlayCSS: {
                    background: '#fff',
                    opacity: 0.6
                }
            } );
        }
    };

I tried to do this:

.processing {
  background: none!important;
}

But nothing came of it.

When performing the Ajax request, blockUI adds style to the blocks of checkout form and cart – styles: “background: ‘#fff'”. My entire website is in black color and I never wanted the background of the blocks style to white. How can I remove this styles without modifying the woomerce js files ? It's part of woomerce javascript which makes me a headache:

/**
     * Block a node visually for processing.
     *
     * @param {JQuery Object} $node
     */
    var block = function( $node ) {
        if ( ! is_blocked( $node ) ) {
            $node.addClass( 'processing' ).block( {
                message: null,
                overlayCSS: {
                    background: '#fff',
                    opacity: 0.6
                }
            } );
        }
    };

I tried to do this:

.processing {
  background: none!important;
}

But nothing came of it.

Share Improve this question asked Jan 13, 2017 at 17:02 JoeJoe 3812 gold badges3 silver badges12 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

http://malsup./jquery/block/overlay.html

div.blockOverlay {
  background-color: #000 !important;
}
发布评论

评论列表(0)

  1. 暂无评论