How to add events to your Calendar (Outlook and Google)

You can add a link to your website to allow your visitors to save your event to their Google/Outlook calendar. Below are examples of how you can do it: <h5>Add to your calendar now to avoid missing the delivery date:</h5> <p> <a href=””>Click here to add event to your Google Calendar</a> </p> <p> <a href=””>Click…

Add a line that strikes through the title

 <div class=”home-section”><h3 class=”strike”>HOME</h3></div> .home-section { margin: 20px 0; display: inline-block; width: 100%; overflow: hidden; } h3.strike { display: table; white-space: nowrap; letter-spacing: 3px; text-transform: uppercase; } h3.strike:before, h3.strike:after { border-top: 3px solid #000; content: ”; display: table-cell; position: relative; top: 10px; width: 50%; } h3.strike:before { right: 30px; } h3.strike:after { left: 20px; }


Unable to see Appearance -> Menu when creating custom theme

function xian_theme_setup() { register_nav_menus( array( ‘header’ => ‘Header menu’, ‘footer’ => ‘Footer menu’ ) ); } add_action( ‘after_setup_theme’, ‘xian_theme_setup’ ); register_nav_menus( array( ‘header’ => ‘Header menu’, ‘footer’ => ‘Footer menu’ ) );

Steps to swap ‘Billing’ with ‘Shipping’

1. Use this to change all default woocommerce frontend and backend labels: function wc_custom_addresses_labels( $translated_text, $text, $domain ) { switch ( $translated_text ) { case ‘Billing Address’ : /* Front-end */ $translated_text = __( ‘Shipping address’, ‘woocommerce’ ); break; case ‘Shipping Address’ : /* Front-end */ $translated_text = __( ‘Billing address’, ‘woocommerce’ ); break; case…

Redirect Domains from Crazy Domain to GoDaddy Managed WP

Step 1: Login to your GoDaddy account and go to Your Account (icon at the top right) -> My Products -> Managed WordPress Websites -> Select A Website -> Settings (…) -> Change Domain. Then click Add Domain at the top right corner. Step 2: Login to your Crazy Domains account and change the A…


Woocommerce – Change ‘Place Order’ text for specific payment method

add_filter( ‘woocommerce_available_payment_gateways’, ‘woocommerce_available_payment_gateways’ ); function woocommerce_available_payment_gateways( $available_gateways ) { if (! is_checkout() ) return $available_gateways; // stop doing anything if we’re not on checkout page. if (array_key_exists(‘cod’,$available_gateways)) { // Gateway ID for Cash on delivery is ‘cod’. $available_gateways[‘cod’]->order_button_text = __( ‘Submit Quote Request’, ‘woocommerce’ ); } return $available_gateways; }