Friday, 25 August 2017

Display spinner with jQuery-ui autocomplete

Add below Class CSS in Your CSS style with loading.gif image

.ui-autocomplete-loading{
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-2CAHF5Z8aPGaK1rsXDzE773kXI9aMrtoTK865ZzNo7VHuhrHJevNyh-dmcMVEDXdB_nMdMlkK1EokWTsbgQgmN7ToHUmWfN3B_JlxIlG5KPPxk5eADuQxyXbMrLSpgivPAzMwNu6l84/s320/loading.gif') no-repeat right center !important;
}



Wednesday, 9 August 2017

Gravity Form In Prevent duplicate form submit on back button

jQuery(function($){
       $(document).on('gform_post_render', function(e, form_id){
            $('#gform_ajax_frame_'+form_id).attr('src', 'about:blank');
       });
});

Friday, 12 May 2017

Featured Image Get in Wordpress

<?php
if(is_home()){
   $blog_page = get_option( 'page_for_posts' );
   $src = wp_get_attachment_image_src( get_post_thumbnail_id($blog_page), 'full' );
$Featured_Image = 'style="background-image: url('.$src[0].');"';
}
?>
<div class="" <?php echo $Featured_Image; ?>></div>

Tuesday, 3 January 2017

WooCommerce: Add wordpress custom field Tab on the Product Page

<?php

/* ## WooCommerce: Add wordpress custom field Tab on the Product Page ## */

/*--------------- Add belove code in theme's function.php file --------------*/



/* Add custom field description tab in Product page */

add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );

function woo_new_product_tab( $tabs ) {
   
$tabs['product_short_description'] = array(
    'title'     => __( 'Ingredients', 'woocommerce' ),
    'priority'  => 50,
    'callback'  => 'woo_new_product_tab_content'
);
    return $tabs;
}


function woo_new_product_tab_content() {
echo get_post_meta(get_the_ID(), 'custom_field_name', TRUE); // Add here custom field name
}

/*. Add custom field description tab in Product page */
?>

Monday, 12 December 2016

SSL certificate problem: unable to get local issuer certificate in Wordpress Update

Wordpress in Plugins or Wordpress version issue by

SSL certificate problem: unable to get local issuer certificate


Resolved:
Add belove two lina at bouttom in "wp-config.php" file

add_filter('https_ssl_verify', '__return_false');
add_filter('https_local_ssl_verify', '__return_false');