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

Home Forums Themes Support Gecko Add textblock at bottom of category page

Viewing 6 reply threads
  • Author
    Posts
    • #33576
      MoonTreasures
      Support Expired

      I would like to add a text block at the bottom of every category page so I can give an extra description of the product on that page and make it more SEO friendly. How can I do that?

    • #33578
      Harry
      Support Expired

      Hi,

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

      if ( ! function_exists( 'jas_gecko_wc_page_head' ) ) {
          function jas_gecko_wc_page_head() {
              // Remove old position of breadcrumb
              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() );
                      add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 40 );
                      add_action( 'woocommerce_after_shop_loop', 'woocommerce_product_archive_description', 40 );
                  } else {
                      $output .= '';
                  }
                  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 );
      }

      By the way, you support expired. Could you please renew your support at https://themeforest.net/item/gecko-powerful-ajax-woocommerce-theme/15863658 that will help us continue develop and improve our theme.

      Thank and regards

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

    • #33589
      MoonTreasures
      Support Expired
      This reply has been marked as private.
    • #33593
      Harry
      Support Expired

      Hi,

      Sorry because inconvenience. Our system not update.

      Thank you for info. Can you send us only purchase code so we can update for our system checking?

      Thank and regards

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

    • #33595
      MoonTreasures
      Support Expired
      This reply has been marked as private.
    • #33597
      Harry
      Support Expired

      Hi,

      Please follow this video to get purchase code https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-

      Kind regards

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

    • #33659
      Harry
      Support Expired

      Thank i updated your info to our support system.

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

Viewing 6 reply threads

You must be logged in to reply to this topic.