-
AuthorSearch Results
-
Hi,
Please change code to
add_action( 'wp_head', 'remove_gallery_thumbnail' ); function remove_gallery_thumbnail(){ remove_action( 'wp_footer', 'jas_gecko_wcvs_modify_images', 1000 ); } if ( class_exists( 'WPA_WCVS' ) && class_exists( 'WooCommerce' ) && ! class_exists( 'ColorSwatch' ) ) { /** * Change the HTML when click to color swatch. * * @since 1.0.0 */ function jas_gecko_child_wcvs_modify_images() { global $post, $product; // Get image zoom $zoom = ''; if ( cs_get_option( 'wc-single-zoom' ) ) { $zoom = ' jas-image-zoom'; } ?> <script> (function( $ ) { "use strict"; $( document.body ).off( 'wpa_wcvs_update_html' ).bind( 'wpa_wcvs_update_html', function( event, data ) { var productId = data.pid, galleries = $( '.variations_form' ).data( 'galleries' ), formData = $( '.variations_form' ).data( 'product_variations' ), galleryKey = '', selectedAttr = {}, usedImages = [], output_gal = [], output_thumb = [], images; // Get selected size and color $( '#product-' + productId + ' .swatch select' ).each(function () { if ( $( this ).parent().parent().hasClass( 'is-color' ) ) { galleryKey = '_product_image_gallery_' + $( this ).data( 'attribute_name' ).replace( 'attribute_', '' ) + '-' + $( this ).val(); } selectedAttr[$( this ).data( 'attribute_name' ).replace( 'attribute_', '' )] = $( this ).val(); }); if ( typeof( galleries[galleryKey] ) !== 'undefined' && galleries[galleryKey] !== null ) { images = galleries[galleryKey]; // Get image gallery $.each( images, function ( index, image ) { if ( image['single'] == undefined ) { var img_single = image['thumbnail']; } else { var img_single = image['single']; } if ( $.inArray( img_single, usedImages ) === -1 ) { output_gal += '<div class="p-item woocommerce-product-gallery__image<?php echo $zoom; ?>">'; output_gal += '<a href="' + image['data-large_image'] + '">'; output_gal += '<img width="' + image['data-large_image_width'] + '" height="' + image['data-large_image_height'] + '" src="' + img_single + '" class="attachment-shop_single size-shop_single" alt="" title="" data-src="' + image['data-src'] + '" data-large_image="' + image['data-large_image'] + '" data-large_image_width="' + image['data-large_image_width'] + '" data-large_image_height="' + image['data-large_image_height'] + '"/>'; output_gal += '</a></div>'; output_thumb += '<div>'; output_thumb += '<img src="' + image['thumbnail'] + '" />'; output_thumb += '</div>'; usedImages.push( img_single ); } }); } else { images = galleries['default_gallery']; // Get variation image $.each( formData, function ( index, variation ) { if ( Object.keys( variation['attributes']).length === Object.keys( selectedAttr ).length ) { // Flag to check right or wrong variation var chooseThisVariation = true; $.each( selectedAttr, function ( attrName, attrValue ) { if ( variation['attributes']['attribute_' + attrName + ''] !== '' && variation['attributes']['attribute_' + attrName + ''] !== attrValue) { chooseThisVariation = false; } }); if ( chooseThisVariation ) { var image = variation['image']; if ( $.inArray( image['thumb_src'], usedImages ) === -1 ) { output_gal += '<div class="p-item woocommerce-product-gallery__image<?php echo $zoom; ?>">'; output_gal += '<a href="' + image['full_src'] + '">'; output_gal += '<img width="' + image['src_w'] + '" height="' + image['src_h'] + '" src="' + image['src'] + '" class="attachment-shop_single size-shop_single" alt="" title="" data-src="' + image['full_src'] + '" data-large_image="' + image['full_src'] + '" data-large_image_width="' + image['full_src_w'] + '" data-large_image_height="' + image['full_src_h'] + '" />'; output_gal += '</a></div>'; output_thumb += '<div>'; output_thumb += '<img src="' + image['thumb_src'] + '" />'; output_thumb += '</div>'; usedImages.push( image['thumb_src'] ); return true; } } } }); } if ( $( '.jas-wc-single' ).is( '.wc-single-1, .wc-single-3' ) || window._inQuickview ) { var data_slick = '{"slidesToShow": 1,"slidesToScroll": 1,"asNavFor": ".p-nav","fade":true, "dots": true ,"adaptiveHeight":true<?php echo ( is_rtl() ? ',"rtl":true' : '' ); ?>}'; } else if ( $( '.jas-wc-single' ).is( '.wc-single-2' ) ) { var data_slick = '{"slidesToShow": 3,"slidesToScroll": 1,"centerMode":true<?php echo ( is_rtl() ? ',"rtl":true' : '' ); ?>, "responsive":[{"breakpoint": 960,"settings":{"slidesToShow": 2, "centerMode":false<?php echo ( is_rtl() ? ',"rtl":true' : '' ); ?>}},{"breakpoint": 480,"settings":{"slidesToShow": 1, "centerMode":false<?php echo ( is_rtl() ? ',"rtl":true' : '' ); ?>}}]}'; } var output = '<div class="p-thumb images jas-carousel" data-slick=\'' + data_slick + '\'>' + output_gal + '</div>'; if ( $( '.jas-wc-single' ).hasClass( 'wc-single-1' ) ) { //output += '<div class="p-nav oh jas-carousel" data-slick=\'{"slidesToShow": 4,"slidesToScroll": 1,"asNavFor": ".p-thumb","arrows": false, "focusOnSelect": true<?php //echo ( is_rtl() ? ',"rtl":true' : '' ); ?>}\'>' + output_thumb + '</div>'; } $( '#product-' + productId + ' .single-product-thumbnail' ).html( output ); setTimeout(function() { $( '.jas-carousel' ).not( '.slick-initialized' ).slick(); if ( $( '.jas-image-zoom' ).length > 0 ) { $( '.jas-image-zoom' ).zoom({ touch: false, }); } // Reset the index of image on product variation $( 'body' ).on( 'found_variation', '.variations_form', function( ev, variation ) { if ( variation && variation.image && variation.image.src && variation.image.src.length > 1 ) { $( '.jas-carousel' ).slick( 'slickGoTo', 0 ); } }); }, 10); // Trigger gallery if ( $( '.woocommerce-product-gallery' ).length > 0 && ! window._inQuickview ) { $( '.woocommerce-product-gallery' ).each( function () { $( this ).wc_product_gallery(); }); $( 'body' ).on( 'click', '.pswp__container, .pswp__button--close', function() { $( '.pswp' ).removeAttr( 'class' ).addClass( 'pswp' ); }); } <?php if ( isset( $options ) && ! empty( $options['wc-single-video-upload'] ) || ! empty( $options['wc-single-video-url'] ) ) : ?> output += '<div class="p-video pa">'; <?php if ( $options['wc-single-video'] == 'url' ) { ?> output += '<a href="<?php echo esc_url( $options['wc-single-video-url'] ); ?>" class="br__50 tc db bghp jas-popup-url"><i class="pe-7s-play pr"></i></a>'; <?php } else { ?> output += '<a href="#jas-vsh" class="br__50 tc db bghp jas-popup-mp4"><i class="pe-7s-play pr"></i></a>'; output += '<div id="jas-vsh" class="mfp-hide"><?php do_shortcode( '"' ) . '" width="640" height="320"]' ); ?></div>'; <?php } ?> output += '</div>'; <?php endif; ?> }); })( jQuery ); </script> <?php } add_action( 'wp_footer', 'jas_gecko_child_wcvs_modify_images', 1000 ); }and add more code in JanStudio > Theme Option > General Layout > Custom CSS
.p-video a { width: 180px; padding: 0 20px; height: 56px; line-height: 56px; text-align: left; border-radius: 30px; font-size: 35px; } .p-video a::after { position: absolute; content: "View video"; font-size: 18px; top: 0; right: 20px; white-space: nowrap; }Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 24, 2018 at 10:19 am #27874In reply to: Need Claue theme support
Hi Harry,
Thanks a lot once again for your prompt support. I’ve updated the PHP version to 7.1. I’ll check in the morning if that has resolved the issue at hand.
Thanks for the CSS to change the swatch size. It’s perfect.
Have a really Merry Christmas and enjoy your holidays.
With best regards
Mohit
December 24, 2018 at 9:12 am #27870In reply to: Need Claue theme support
Hi,
Thank you for purchase new license.
1. I check your site and see it running on outdated PHP version http://prntscr.com/lytdaw, please contact your hosting support to help you update PHP version
2. Please add below code to CLaue > Theme Option > General Layout > Custom CSS
.swatch.is-label .swatch__list--item { border-radius: 15px; } .swatch.is-label .swatch__value { width: auto; padding: 0 10px; }3. I’m sorry Simple Product doesn’t has any variation so can’t show color swatches.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 23, 2018 at 11:46 am #27863In reply to: Sticky header menu color is not changing.
Hi,
Please add below code to Claue > Theme Option > General Layout > Custom CSS
.jas-push-menu #jas-mobile-menu ul > li:hover > a { color: #56cfe1; } .header-sticky .jas-push-menu .jas-action a {color: #222;}Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 23, 2018 at 11:35 am #27862In reply to: Want to hide quick View from mobile
Hi,
Please add below code to Claue > Theme Option > General Layout > Custom CSS
@media only screen and (max-width: 1024px) {.btn-quickview {display: none;}}Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 21, 2018 at 9:55 pm #27853In reply to: Portfolio Page Edit
Hi,
1. Please login to Snapppt https://snapppt.com/ > Shop the Feed and follow this screenshot http://prntscr.com/lxy8ff
2. Please add below code to claue > theme option > general layout > custom CSS
.portfolio-item .portfolio-title { top: inherit; left: inherit; opacity: 1; width: 100%; padding: 0 30px; -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); position: relative; margin-top: 30px; } .portfolio-item:hover .portfolio-title { opacity: 1; -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); }Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 21, 2018 at 5:41 pm #27845In reply to: Variant added to cart is not the variant selected
Hi,
We fix issue on your site by add below code to Theme Settings > Custom Code > Custom CSS
#productSelect {display: block !important;} .swatch.mb__20 {display: none;}Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 20, 2018 at 7:36 pm #27831In reply to: Product filter in the mobile view as menu
Could you follow the guide of GTMetrix, on mobile and desktop it load same javacript and css.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 20, 2018 at 11:53 am #27823In reply to: Want to remove this
Hi,
Please add below code to Claue > Theme Option > General Layout > Custom CSS
.jas-portfolio .page-head { display: none; }Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioDecember 19, 2018 at 9:25 pm #27811In reply to: Product filter in the mobile view as menu
Hi,
You can hide sidebar on mobile by add below code to Claue > Theme Option > General Layout > Custom CSS
@media only screen and (max-width: 736px) {.archive .sidebar {display: none;}}Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
AuthorSearch Results