Home Forums Themes Support Claue Minor changes/issues we need to resolve before going live

Topic Resolution: Not Resolved

This topic contains 53 replies, has 2 voices, and was last updated by  Micky 4 hours, 54 minutes ago.

Viewing 15 posts - 31 through 45 (of 54 total)
  • Author
    Posts
  • #32745

    I see you edited (remove some code) in file index.php in theme and i help you corrected the code.

    It now ok.

    Kind regards

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

    #32840
    Micky
    Supported

    Thanks Harry for fixing this, looks way better now our blog page with the sidebar in place.

    There’s an issue we have with our metatag description of our homepage, we have chatted with Rankmath about it and they have gotten access to our website and checked all to identify what could be the cause for this (seems to be the theme itself).

    We have set up metadata for our homepage (title & image) but for some reason other meta data is used for the homepage when shared on socials. Rank Math has now detected that something in the theme itself is overwriting the main metatag of our site chargichargi.com

    How can I switch off this overwriting so that our settings in Rank Math are used and not something that the template is using cause the template is taking metadata from a product and using this for our main snippet.

    try to charge http://www.chargichargi.com and you will see the metadata is not correct and not how its set.

    Thanks,

    Michael

    #32841
    Micky
    Supported

    We’d like to swap the following as well: http://prntscr.com/omx6f3

    The add to cart button and colour selection should be below the title followed by the description.

    Thanks

    #32852

    Hi,

    Please add below code to claue-child > functions.php

    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20);
    add_action('woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 35);
    remove_action( 'wp_head', 'jas_claue_social_meta' );

    Kind regards

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

    #32858
    Micky
    Supported

    Hi Harry,

    There is something wrong with our images for some reason over the whole website, none of the images on the product pages show. What happened there?

    Please have a look at my message above as well regarding the meta description.

    Thanks

    #32859
    Micky
    Supported

    Please ignore my latest message as for some reason the Alidropship Plugin was deactivated.

    Could you please have a look at the message above I wrote to you about the metadata? Thanks

    #32870

    Hi,

    Please add below code to claue-child > functions.php

    if ( ! function_exists( 'jas_claue_social_meta' ) && ! function_exists( 'wpseo_activate' ) && ! class_exists('RankMath') )  {
    	function jas_claue_social_meta() {
    		global $post;
    		if ($post) {
    			$output = '';
    			$image_src_array = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full', true );
    
    			$output .= '<meta itemprop="name" content="' . esc_attr( strip_tags( get_the_title() ) ) . '">';
    			$output .= '<meta itemprop="description" content="' . esc_attr( strip_tags( $post->the_excerpt ) ) . '">';
    			$output .= '<meta itemprop="image" content="' . esc_url( $image_src_array[0] ) . '">';
    
    			$output .= '<meta name="twitter:card" content="summary_large_image">';
    			$output .= '<meta name="twitter:site" content="@' . str_replace( ' ', '', get_bloginfo( 'name' ) ) . '">';
    			$output .= '<meta name="twitter:title" content="' . esc_attr( strip_tags( get_the_title() ) ) . '">';
    			$output .= '<meta name="twitter:description" content="' . esc_attr( strip_tags( $post->the_excerpt ) ) . '">';
    			$output .= '<meta name="twitter:creator" content="@' . str_replace( ' ', '', get_bloginfo( 'name' ) ) . '">';
    			$output .= '<meta name="twitter:image:src" content="' . esc_url( $image_src_array[0] ) . '">';
    
    			$output .= '<meta property="og:title" content="' . esc_attr( strip_tags( get_the_title() ) ) . '" />';
    			$output .= '<meta property="og:url" content="' . esc_url( get_permalink() ) . '" />';
    			$output .= '<meta property="og:image" content="' . esc_url( $image_src_array[0] ) . '" />';
    			$output .= '<meta property="og:image:url" content="' . $image_src_array[ 0 ] . '"/>'. "\n";
    			$output .= '<meta property="og:description" content="' . esc_attr( strip_tags( $post->the_excerpt ) ) . '" />';
    			$output .= '<meta property="og:site_name" content="' . get_bloginfo( 'name') . '" />';
    
    			if ( function_exists( 'is_product' ) && is_product() ) {
    				$output .= '<meta property="og:type" content="product"/>'. "\n";
    			} else {
    				$output .= '<meta property="og:type" content="article"/>'. "\n";
    			}
    	 
    			echo force_balance_tags( $output );
    		}
    	}
    	add_action( 'wp_head', 'jas_claue_social_meta', 0 );
    }

    Kind regards

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

    #32876
    Micky
    Supported

    Thanks for your feedback but nothing has changed, the incorrect metadata is still there, please see:
    https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fwww.chargichargi.com%2F%20

    The image and title are not correct here and there is nowhere in the theme or settings I’m able to change this..

     

    #32879

    Hi,

    you did not put in child theme. I fix issue on parent theme.

    I recommend put all your custom code to child theme to prevent your code without losing custom code when update theme.

    Kind regards

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

    #32884
    Micky
    Supported

    Thanks Harry for your support (again), you been very helpful. Have a great weekend

    #32886

    You’re welcome. Have great weekend, too!

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

    #32887
    Micky
    Supported

    is it possible that due to the formule our shipping options changed?

    When the order has reached 15 EURO the Standard shipping sh0uld not be visible on the checkout page and only the free shipping should be there.

    For some reason it shows both now, we solved that issue through a short code a while ago so not sure why its there again now? http://prntscr.com/onijqq

    Thanks buddy

    #32888

    Hi,

    Please add below code to claue-child > functions.php

    /**
     * Hide shipping rates when free shipping is available.
     * Updated to support WooCommerce 2.6 Shipping Zones.
     *
     * @param array $rates Array of rates found for the package.
     * @return array
     */
    function my_hide_shipping_when_free_is_available( $rates ) {
    	$free = array();
    	foreach ( $rates as $rate_id => $rate ) {
    		if ( 'free_shipping' === $rate->method_id ) {
    			$free[ $rate_id ] = $rate;
    			break;
    		}
    	}
    	return ! empty( $free ) ? $free : $rates;
    }
    add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100 );

    Kind regards

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

    #32903
    Micky
    Supported

    Hey Harry,

    Apologies but I am confused, where exactly can I access this in the child theme?

    Before I always updated the code in the main Clau theme, probably not a good idea but it seemed to work, I understand it’s more risky as the main theme gets edited instead of the child theme.

    Where can I access the functions of the child theme?

    Thanks for your support.

    #32906

    Hi,

    Please download package on themeforest, extract file and install claue-child.zip in Appearance > Themes > Add new like you install parent theme.

    After that you can access child theme in Appearance > Theme Editor.

    Kind regards

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

Viewing 15 posts - 31 through 45 (of 54 total)

You must be logged in to reply to this topic.