Install and populate woo testimonials plugin: Extract and import this .json file into slider (the .jma-testimonials class isincluded in this import): soliloquy-73-05-11-2018.json.tar /* testimonial slider */ .jma-testimonials { max-height: inherit !important; } .jma-testimonials .soliloquy-caption { position: static !important; display: block !important } .jma-testimonials .soliloquy-caption-inside { position: absolute !important; top: 0 !important; width: 100% !important; height: […]
WooCommerce Filters
Remove related products function jma_remove_related_products( $args ) { return array(); } add_filter(‘woocommerce_related_products_args’,’jma_remove_related_products’, 10); Redirect ‘add to cart’ button function jma_redirect_add_to_cart() { global $woocommerce; $checkout_url = $woocommerce->cart->get_checkout_url();//get_cart_url(); for cart return $checkout_url; } add_filter (‘add_to_cart_redirect’, ‘jma_redirect_add_to_cart’); Redirect ‘back to shop’ button function jma_return_to_shop_redirect() { return get_permalink(682); } add_filter( ‘woocommerce_return_to_shop_redirect’, ‘jma_return_to_shop_redirect’ ); Turn off Themeblvd Woo Images (re-enable […]
WooCommerce MiniCart
//shortcode for mini-cart function jma_woo_minicart($atts){ ob_start(); global $woocommerce; echo ‘<a class=”cart-contents” href=”‘ . ‘ $woocommerce->cart->get_cart_url()’ . ‘” title=”View your shopping cart”>’; echo sprintf(_n(‘%d item’, ‘%d items’, $woocommerce->cart->cart_contents_count, ‘woothemes’), $woocommerce->cart->cart_contents_count) . ‘ – ‘ . $woocommerce->cart->get_cart_total() . ‘</a>’; $x = ob_get_contents(); ob_end_clean(); return $x; } add_shortcode(‘jma_woo_minicart’,’jma_woo_minicart’); // Ensure cart contents update when products are added to […]
Woo Testimonials Quote Styling
Add this to functions.php to enable psuedo elements: function jma_child_scripts() { wp_add_inline_script(‘fontawesome’, ‘window.FontAwesomeConfig={searchPseudoElements:true}’, ‘before’); } add_action(‘wp_enqueue_scripts’, ‘jma_child_scripts’); The CSS: .quote { margin-bottom: 20px; } .quote blockquote { font: 14px/20px italic Arial, Helvetica, sans-serif; padding: 8px; margin: 5px; text-indent: 40px; border-color: rgba(253, 186, 49, 0.5); position: relative; } .quote blockquote::before, .quote blockquote::after { font-family: “Font Awesome […]