Home Forums Themes Support Claue phần mô tả danh mục sản phẩm WooCommerce

Viewing 8 reply threads
  • Author
    Posts
    • #23393

      Chào Janstudio! Cho mình hỏi mình muốn đưa mô tả ở phần danh mục sản phẩm xuống cuối trang thay vì mặc định nằm ở phần đầu trang. Trong phần cài đặt theme không có phần tùy chỉnh cái này ạ. Mong Janstudio hổ trợ ạ. Cảm ơn nhiều!

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

      Hi bạn,

      Bạn thêm đoạn code sau vô file functions.php in claue-child

      add_action( 'wp_head', 'remove_page_head' );
      function remove_page_head(){
      	remove_action( 'woocommerce_before_main_content', 'jas_claue_wc_page_head', 15 );
      }
      
      function jas_claue_child_wc_page_head() {
      	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', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>';
      		} elseif ( is_shop() ) {
      			$output .= '<h1 class="mb__5 cw">' . esc_html( cs_get_option( 'wc-page-title' ) ) . '</h1>';
      			//$output .= '<p class="mg__0">' . do_shortcode( cs_get_option( 'wc-page-desc' ) ) . '</p>';
      		} else {
      			// Remove old position of category description
      			//remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
      
      			$output .= '<h1 class="cw">' . single_cat_title( '', false ) . '</h1>';
      			//$output .= do_shortcode( category_description() );
      		}
      		ob_start();
      		$output .= ob_get_clean();
      	$output .= '</div></div>';
      
      	echo wp_kses_post( $output );
      }
      add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 );

      và 1 đoạn code vô Claue > Theme Option > General Layout > Custom CSS

      .term-description {
      	display: block;
      	padding: 0 15px;
      }

      Best regards

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

    • #23413

      Hi Anh! Ý em là cho phần mô tả xuống dưới chân trang ở trên footer ấy anh. Như mô tả danh mục của lazada ấy

    • #23421

      Hi bạn,

      Đúng rồi, cách làm của mình giúp move phần description của category xuống dưới bên trên footer.

      Chúc bạn ngày mới vui vẻ!

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

    • #23422

      Anh kiểm tra giúp em chứ add code vào rồi nhưng nó vẫn vậy ạ.

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

      Sorry bạn minh quên mất, bạn download file attach và giải nén vào thư mục claue-child > woocommerce nữa nhé.

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

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

    • #23430

      Dạ cảm ơn Anh. Trong thư mục claue-child không có folder Woocommerce anh ơi.  Anh cho em hỏi thêm xíu nữa nếu làm như thế này có ẩn hưởng tới seo không vậy anh?

    • #23433

      E tạo mới thư mục woocommerce trong claue-child nhé.

      Cái này không ảnh hưởng đến SEO, nên ko vấn đề gì e ah.

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

    • #23490

      dạ cảm ơn anh nhiều.

Viewing 8 reply threads

You must be logged in to reply to this topic.