• i was using following code in earlier version of this plugin.
    but now this code is not working.
    whats wrong here?
    please help

    .wc_quick_buy_button {
    !important;
    background-color: #ff7902;
    height: 46px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: none;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    }

    .wc_quick_buy_button:hover {
    !important;
    background-color: #ff5a00;
    height: 46px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: none;
    border-radius: 3px;
    color: white;
    font-weight: bold;
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • kiranl

    (@kiranl)

    Any solution for this.
    I was written styles in the backend, but styles were not applying to the button on frontend.

    Path: woocommerce-quick-buy > includes > class-frontend.php line no: 46
    commented the original path and given the path to my custom-stylesheet directory. Then only the styles were applying.

    For example:

    public function enqueue_style_script() {
    wp_enqueue_style(
    'custom-style',
    plugins_url() . '/woocommerce-quick-buy/includes/css/style.css'
    );
    wp_enqueue_script( WCQB_DB . '_frontend', WCQB_JS . 'frontend.js', array( 'jquery' ), WCQB_V );
    //wp_add_inline_style( WCQB_DB . '_plugin_style', $this->render_quick_buy_style() );
    
        wp_add_inline_style( 'custom-style',$this->render_quick_buy_style() );
    }
    
    • This reply was modified 8 years ago by kiranl.
Viewing 1 replies (of 1 total)

The topic ‘can not customize buy now button’ is closed to new replies.