Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • The correct is to leave the default size and the person turns to modify pro compact if you want, usually use the default!

    I made simple code (jQuery) to normalize and leave at the default size.

    /*===========================================/ 
    / Normalize Mailpoet Google Recaptcha Size   /
    / By: Husani Santos - behance.net/criativime /
    /===========================================*/
    (function($){
    	$(window).on('load', function(){
    		var selector = $('.mailpoet_recaptcha iframe');
    		var gcaptcha = selector.attr('src').replace('size=compact', '');
    		selector.attr('src', gcaptcha);
    	});
    })(jQuery);

    It is very easy, see:

    Add a new sidebar on functions.php of your theme:

    add_action( 'widgets_init', 'theme_slug_widgets_init' );
    function theme_slug_widgets_init() {
        register_sidebar( array(
            'name' => __( 'Cart Widget', 'your_text_domain' ),
            'id' => 'cart-header',
            'description' => __( 'Your Description', 'your_text_domain' ),
        ) );
    }

    Now add code to get the sidebar on your header.php file:

    <?php if ( is_active_sidebar( 'cart-header' ) ) { ?>
    <?php dynamic_sidebar( 'cart-header' ); ?>
    <?php } ?>

    Go to WordPress in Widgets and add de Woocommerce Dropdown to Cart Widget Sidebar.

Viewing 2 replies - 1 through 2 (of 2 total)