Home › Forums › Themes Support › Gecko › Add textblock at bottom of category page
- This topic has 6 replies, 2 voices, and was last updated 5 years, 3 months ago by Harry.
-
AuthorPosts
-
-
September 15, 2019 at 2:05 am #33576MoonTreasuresSupport 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?
-
September 15, 2019 at 11:46 am #33578HarrySupport 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 -
September 16, 2019 at 2:53 am #33589MoonTreasuresSupport ExpiredThis reply has been marked as private.
-
September 16, 2019 at 7:20 am #33593HarrySupport 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 -
September 17, 2019 at 2:11 am #33595MoonTreasuresSupport ExpiredThis reply has been marked as private.
-
September 17, 2019 at 7:07 am #33597HarrySupport 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 -
September 19, 2019 at 9:29 pm #33659HarrySupport 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
-
-
AuthorPosts
You must be logged in to reply to this topic.