Home Forums Themes Support Gecko Some modification about font menu & breadcrumb

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

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #26736

    OMG you really help me, i dont know why how to say thank you

    #26737

    How do i change CLAIRE ET AGNES ROYAL into Claire et Agnès ROYAL ? Since ur last code didnt work well

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

    For the single product page, it wont show the title even i put the title http://claireetagnes.com/bliss-3-piece-nursery-furniture-set-in-seagreen/

    #26746

    Hi,

    For text transform please add below code to JanStudio > Theme Option > General Layout > Custom CSS

    .page-head h1 {
    	text-transform: none;
    }

    I help you correct last code, that because you still keep old code, i removed it.

    3. Please add below code to wp-content/themes/gecko-child/functions.php

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
    
    if ( ! function_exists( 'jas_gecko_wc_page_head' ) ) {
    	function jas_gecko_wc_page_head() {
    		// Remove old position of breadcrumb
    
    		global $product; 
    
        	$product_id = $product->get_id();
    		remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
    		if ( ! cs_get_option( 'wc-enable-page-title' ) || ( class_exists( 'WCV_Vendors' ) && WCV_Vendors::is_vendor_page() ) ) return;
    
    		$title = cs_get_option( 'wc-page-title' );
    
    		$output = '<div class="page-head pr tc"><div class="jas-container pr">';
    			if ( is_search() ) {
    			$output .= '<h1 class="mb__5 cw">' . sprintf(__( 'Search Results for: %s', 'gecko' ), '<span>' . get_search_query() . '</span>' ) . '</h1>';
    			} elseif ( is_shop() ) {
    				$output .= '<h1 class="tu mb__10 cw">' . esc_html( cs_get_option( 'wc-page-title' ) ) . '</h1>';
    				$output .= '<p>' . do_shortcode( cs_get_option( 'wc-page-desc' ) ) . '</p>';
    			} elseif ( is_product_category() ) {
    				// Remove old position of category description
    				remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
    
    				$output .= '<h1 class="tu mb__10 cw">' . single_cat_title( '', false ) . '</h1>';
    				$output .= do_shortcode( category_description() );
    			} else {
    				$output .= '<h1 class="tu mb__10 cw">' . $product->get_title('ID') . '</h1>';
    			}
    			ob_start();
    				woocommerce_breadcrumb();
    			$output .= ob_get_clean();
    		$output .= '</div></div>';
    
    		echo wp_kses_post( $output );
    	}
    	add_action( 'woocommerce_before_main_content', 'jas_gecko_wc_page_head', 15 );
    	add_action( 'woocommerce_before_single_product', 'jas_gecko_wc_page_head', 5 );
    }

    Regards

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

Viewing 4 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic.