Home Forums Themes Support Claue Displaying the slider on tablets

Topic Resolution: Resolved

Tagged: 

This topic contains 85 replies, has 2 voices, and was last updated by  Harry 3 weeks, 4 days ago.

Viewing 15 posts - 46 through 60 (of 86 total)
  • Author
    Posts
  • #30273

    Thanks. Everything works

    #30276

    Please attach and check the functions file.php

    
    if ( ! function_exists( 'jas_gecko_social_share' ) ) {
    	function jas_gecko_social_share() {
    		global $post;
    		$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), false, '' );
    		?>
    			<div class="social-share">
    				<div class="jas-social">
    					<a title="<?php echo esc_html__( 'Share this post on Facebook', 'gecko' ); ?>" class="cb facebook" href="http://www.facebook.com/sharer.php?u=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    						<i class="fa fa-facebook"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Twitter', 'gecko' ); ?>" class="cb twitter" href="https://twitter.com/share?url=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    						<i class="fa fa-twitter"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Google Plus', 'gecko' ); ?>" class="cb google-plus" href="https://plus.google.com/share?url=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    						<i class="fa fa-google-plus"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Pinterest', 'gecko' ); ?>" class="cb pinterest" href="//pinterest.com/pin/create/button/?url=<?php esc_url( the_permalink() ); ?>&media=<?php echo esc_url( $src[0] ); ?>&description=<?php the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
    						<i class="fa fa-pinterest"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Tumbr', 'gecko' ); ?>" class="cb tumblr" data-content="<?php echo esc_url( $src[0] ); ?>" href="//tumblr.com/widgets/share/tool?canonicalUrl=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=540');return false;">
    						<i class="fa fa-tumblr"></i>
    					</a>
    				</div>
    			</div>
    		<?php
    	}
    }
    
    

    Which you gave earlier

    #30277

    Tell me how to create a child theme for self-editing styles? Please

    #30278

    Sorry, please change code to

    if ( ! function_exists( 'jas_claue_social_share' ) ) {
    	function jas_claue_social_share() {
    		global $post;
    		$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), false, '' );
    		?>
    			<div class="social-share">
    				<div class="jas-social">
    					<a title="<?php echo esc_html__( 'Share this post on Facebook', 'claue' ); ?>" class="cb facebook" href="http://www.facebook.com/sharer.php?u=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    						<i class="fa fa-facebook"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Twitter', 'claue' ); ?>" class="cb twitter" href="https://twitter.com/share?url=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    						<i class="fa fa-twitter"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Google Plus', 'claue' ); ?>" class="cb google-plus" href="https://plus.google.com/share?url=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    						<i class="fa fa-google-plus"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Pinterest', 'claue' ); ?>" class="cb pinterest" href="//pinterest.com/pin/create/button/?url=<?php esc_url( the_permalink() ); ?>&media=<?php echo esc_url( $src[0] ); ?>&description=<?php the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
    						<i class="fa fa-pinterest"></i>
    					</a>
    					<a title="<?php echo esc_html__( 'Share this post on Tumbr', 'claue' ); ?>" class="cb tumblr" data-content="<?php echo esc_url( $src[0] ); ?>" href="//tumblr.com/widgets/share/tool?canonicalUrl=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=540');return false;">
    						<i class="fa fa-tumblr"></i>
    					</a>
    				</div>
    			</div>
    		<?php
    	}
    }

    and add your code to VK like below code

    <a title="<?php echo esc_html__( 'Share this post on Tumbr', 'claue' ); ?>" class="cb tumblr" data-content="<?php echo esc_url( $src[0] ); ?>" href="//tumblr.com/widgets/share/tool?canonicalUrl=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=540');return false;">
    						<i class="fa fa-tumblr"></i>
    					</a>

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #30280

    It’s not working. In attachment added screenshots
    Perhaps the code is not correct?

    Attachments:
    You must be logged in to view attached files.
    #30289

    Hi cssnik,

    Please change code to

    add_action( 'wp_head', 'remove_my_action' ); 
    function remove_my_action(){
    	remove_action( 'woocommerce_single_product_summary', 'jas_claue_wc_single_social_share', 50 );
    }
    function jas_claue_child_social_share() {
    	global $post;
    	$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), false, '' );
    	?>
    		<div class="social-share">
    			<div class="jas-social">
    				<a title="<?php echo esc_html__( 'Share this post on Facebook', 'claue' ); ?>" class="cb facebook" href="http://www.facebook.com/sharer.php?u=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    					<i class="fa fa-facebook"></i>
    				</a>
    				<a title="<?php echo esc_html__( 'Share this post on Twitter', 'claue' ); ?>" class="cb twitter" href="https://twitter.com/share?url=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    					<i class="fa fa-twitter"></i>
    				</a>
    				<a title="<?php echo esc_html__( 'Share this post on Google Plus', 'claue' ); ?>" class="cb google-plus" href="https://plus.google.com/share?url=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=380,width=660');return false;">
    					<i class="fa fa-google-plus"></i>
    				</a>
    				<a title="<?php echo esc_html__( 'Share this post on Pinterest', 'claue' ); ?>" class="cb pinterest" href="//pinterest.com/pin/create/button/?url=<?php esc_url( the_permalink() ); ?>&media=<?php echo esc_url( $src[0] ); ?>&description=<?php the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
    					<i class="fa fa-pinterest"></i>
    				</a>
    				<a title="<?php echo esc_html__( 'Share this post on Tumbr', 'claue' ); ?>" class="cb tumblr" data-content="<?php echo esc_url( $src[0] ); ?>" href="//tumblr.com/widgets/share/tool?canonicalUrl=<?php esc_url( the_permalink() ); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=540');return false;">
    					<i class="fa fa-tumblr"></i>
    				</a>
    			</div>
    		</div>
    	<?php
    }
    
    function jas_claue_child_wc_single_social_share() {
    	if ( cs_get_option( 'wc-social-share' ) ) {
    		jas_claue_child_social_share();
    	}
    }
    add_action( 'woocommerce_single_product_summary', 'jas_claue_child_wc_single_social_share', 50 );

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #30303

    It’s not working.
    It is possible to add this code to the original functions.php?

    #30309

    Hi,

    I check on my local it work well, Could you send me login credential to check.

    Thanks

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #30315

    One question.
    Need to activate a child theme? As in the screenshot
    Maybe this is the reason

    Attachments:
    You must be logged in to view attached files.
    #30319

    Yes, you need to activate child theme, because the code you add in child theme.

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #30364

    Thanks

    #30367

    Hi,

    Is your issue solve?

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #30375

    Yes, thanks

    #30618

    Hello.
    We have a problem with z-index. Cart is not displayed when you click.
    Please help

    Attachments:
    You must be logged in to view attached files.
    #30622

    Hi,

    please change code

    from

    #jas-header {
    position: relative;
    z-index: 999;
    }

    to

    #jas-header {
    position: relative;
    z-index: 9999;
    }

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 15 posts - 46 through 60 (of 86 total)

You must be logged in to reply to this topic.