Put informative Woocommerce Info Boxes below the “Add to Cart” button and you’ll supercharge your WooCommerce product pages.
// Add Info Boxes under Add to Cart function sf_add_to_cart_info_boxes(){ echo '<div class="sf-add-to-cart-infobox">'; echo '<i class="fa-solid fa-truck-fast"></i>'; echo '<div class="desc">'; echo '<h5>Need fast shipping?</h5>'; echo '<p>Select the Express Service, and the shipping will be completed within 24 hours from project approval.</p>'; echo '<a href="#">Read more</a>'; echo '</div>'; echo '</div>'; echo '<div class="sf-add-to-cart-infobox">'; echo '<i class="fa-regular fa-circle-question"></i>'; echo '<div class="desc">'; echo '<h5>How to place an order?</h5>'; echo '<p>See the detailed step-by-step process for placing an order in our store.</p>'; echo '<a href="#">Read more</a>'; echo '</div>'; echo '</div>'; } add_action( 'woocommerce_after_add_to_cart_button', 'sf_add_to_cart_info_boxes', 25 );
Read full article: WooCommerce Info Boxes under Add to Cart
WordPress Snippets
Top comments (0)