Your account expired support, please renew to get your support.

Home Forums Themes Support Claue How to move category description text before products listings

Viewing 10 reply threads
  • Author
    Posts
    • #44098
      cata78
      Support Expired

      Hi,

      I added a description in each product category, but this description is displayed before products. I want to move this after products. How can i edit product category pages?

      • This topic was modified 8 months, 4 weeks ago by cata78.
    • #44100
      Harry
      Support Expired

      Hi Cata,

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

       

      /* move category description below products */
      add_action( ‘wp_head’, ‘remove_my_action’ );
      function remove_my_action(){
      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() );
      add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_taxonomy_archive_description’, 40 );
      add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_product_archive_description’, 40 );
      }
      ob_start();
      $output .= ob_get_clean();
      $output .= ‘</div></div>’;

      echo wp_kses_post( $output );
      }
      add_action( ‘woocommerce_after_main_content’, ‘jas_claue_child_wc_page_head’, 15 );

       

      Kind regards

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

    • #44101
      cata78
      Support Expired

      I added it in main theme functions.php and it moves only the title without description. Description disappeared.

    • #44103
      Harry
      Support Expired

      Can you send me your site url to check?

      Btw, your support expired. Please renew your support at https://themeforest.net/downloads

      Thank and regards

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

    • #44104
      cata78
      Support Expired
      This reply has been marked as private.
    • #44105
      Harry
      Support Expired

      Please send admin account? I need to check bẻoe give you solution.

      The support will help us continue improve and update new features for our theme.

      Kind regards

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

    • #44106
      cata78
      Support Expired
      This reply has been marked as private.
    • #44108
      Harry
      Support Expired

      Hi,

      1. I check your site and activate child theme, it now the site error.

      Can you send me FTP account to fix?

      2. On the laptop resolution less than 1024px it will change to 2 cols

      Thanks

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

    • #44109
      Harry
      Support Expired

      Hi,

      I help you correct the code in claue-child > functions.php

      Please check.

      Kind regards

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

    • #44116
      Harry
      Support Expired

      Hi,

      I not good for url friendly, please try a plugin Rankmath or Yoast Seo.

      Kind regards

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

    • #44120
      Harry
      Support Expired

      Hi,

      I just edit code in child theme.

      Kind regards

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

Viewing 10 reply threads

You must be logged in to reply to this topic.