HTML

How to Creating a “Pop-up” button in WordPress involves adding HTML, CSS, and possibly JavaScript to your WordPress site Without Plugins

Create a new page or post in WordPress, and switch to the Text editor. Add the following HTML code: <button id=”popup-button”>Start Now</button> <div id=”popup-modal” class=”popup”> <div class=”popup-content”> <span class=”close” id=”popup-close”>&times;</span> <p>Click on the buttons below:</p> <a href=”https://isansar.net/buttom1″ id=”popup-sub-button1″ class=”popup-sub-button”>Whatsapp</a> <a href=”https://isansar.net/buttom2″ id=”popup-sub-button2″ class=”popup-sub-button”>Messanger</a> <a href=”https://isansar.net/buttom3″ id=”popup-sub-button3″ class=”popup-sub-button”>Email</a> </div> </div>   2. Add the CSS styles

How to Creating a “Pop-up” button in WordPress involves adding HTML, CSS, and possibly JavaScript to your WordPress site Without Plugins Read More »

Add Buy Now Button in WooCommerce Without Plugin

Add below code in functions.php file. Buy and empty Cart  // Add Buy Now button on product page add_action( ‘woocommerce_after_add_to_cart_button’, ‘add_buy_now_button’ ); function add_buy_now_button() { global $product; echo ‘<a href=”‘ . esc_url( wc_get_checkout_url() ) . ‘?buy-now=’ . $product->get_id() . ‘” class=”button alt”>Buy Now</a>’; } // Handle Buy Now button redirect to checkout page add_action( ‘template_redirect’,

Add Buy Now Button in WooCommerce Without Plugin Read More »