keithg

Slider load in bootstrap tabbing

make sure file exist : <link rel=”stylesheet” href=”//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css”> <link rel=”stylesheet” href=”http://bxslider.com/lib/jquery.bxslider.css” type=”text/css” /> <script src=”//code.jquery.com/jquery-1.10.2.js”></script> <script src=”//code.jquery.com/ui/1.11.0/jquery-ui.js”></script> <script src=”http://bxslider.com/lib/jquery.bxslider.js”></script> script for load slider ADD IN ONLOAD $(function() { var slider2_initialized = false; var slider3_initialized = false; $( “#tabs” ).tabs({ activate: function( event, ui ) { //console.log(“ui = “);console.log(ui); var tab_id...Read more …
keithg

CONCAT Vs CONCAT_WS

MySQL supports two types of concatenation functions. They are CONCAT and CONCAT_WS CONCAT function just concats all the argument values as such SELECT CONCAT('Television','Mobile','Furniture'); The above code returns the following [crayon-5905221cdca20837319691/] If you want to concatenate them with a comma, either you need to specify the comma at the end...Read more …
keithg

Single page structure -Woocommerce

WooCommerce Visual Hook Guide: Single Product Page   // These are actions you can unhook/remove! add_action( 'woocommerce_before_single_product', 'wc_print_notices', 10 ); add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 ); add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 ); add_action( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );...Read more …
keithg

Use the gettext WordPress filter to change any translatable string – Woocomerce

<?php /** * Change text strings * * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function my_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case ‘Sale!’ : $translated_text = __( ‘Clearance!’, ‘woocommerce’ ); break; case ‘Add to cart’ : $translated_text = __( ‘Add to basket’, ‘woocommerce’ ); break; case ‘Related Products’...Read more …