Home › Forums › Themes Support › Gecko › Category text
Tagged: category text
- This topic has 21 replies, 2 voices, and was last updated 3 years, 8 months ago by Harry.
-
AuthorPosts
-
-
May 15, 2018 at 6:58 am #20461
-
May 15, 2018 at 12:55 pm #20483
-
May 15, 2018 at 2:28 pm #20497
Thanks for immediate reply!
I already have a child theme activated, should i still do it? Or i should add it to existing child theme?
Thanks!
-
May 15, 2018 at 3:15 pm #20500
Hi,
Please add below code to gecko-child > functions.php
add_action( ‘wp_head’, ‘remove_page_head_category’ );
function remove_page_head_category(){
remove_action( ‘woocommerce_before_main_content’, ‘jas_gecko_wc_page_head’, 15 );
}function jas_gecko_child_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>'; } else { // 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() ); } ob_start(); woocommerce_breadcrumb(); $output .= ob_get_clean(); $output .= '</div></div>'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_gecko_child_wc_page_head', 15 );
and copy file archive-product.php in downloaded file to gecko-child > woocommerce
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 16, 2018 at 7:24 am #20561
Hello Harry,
that partially worked! Category text has changed position and moved, just below breadcrumbs but still not where i wanted it.
Please check screenshot. I would like it to be placed above products and not full width!
Is this an easy fix?
Could you please help me with this!
Thank you so much!
-
May 16, 2018 at 5:30 pm #20589
Hi,
Please download attach file and extract to gecko-child > woocommerce
and add below code to JanStudio > Theme Option > General Layout > Custom CSS
.term-description { padding: 30px 0; max-width: 1170px; margin: 30px auto; width: 100% }
Best regards
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 -
May 18, 2018 at 7:43 am #20660
-
May 19, 2018 at 1:33 pm #20696This reply has been marked as private.
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
May 23, 2018 at 8:16 am #20791
Hello that did the trick!
thank you very much!
- How to change text background color
- Is there a way to do it without altering theme’s files but only child theme ? If not I should only replace functions.php and style.css?
Thank you!!
-
May 23, 2018 at 4:32 pm #20795
Hi,
Please add below code to gecko-child > style.css or JanStudio > Theme Option > General Layout > Custom CSS
.term-description {background: #f6f6f8;}
and change #f6f6f8 with your color
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 8, 2021 at 5:19 pm #40346This reply has been marked as private.
-
February 8, 2021 at 7:08 pm #40347
Hello,
please follow this topic to update theme http://support.janstudio.net/forums/topic/updating-the-theme/.
Btw, your support expired so long. 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 -
February 8, 2021 at 7:20 pm #40348
Hello I know how to update the theme, I just need help adding the text below woocommerce categories because what have you suggested no longer works.
Thank you.
-
February 9, 2021 at 1:10 pm #40352
hi,
Please add below code to gecko-child > functions.php
add_action( 'wp_head', 'remove_page_head_category' ); function remove_page_head_category(){ remove_action( 'woocommerce_before_main_content', 'jas_gecko_wc_page_head', 15 ); } function jas_gecko_child_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>'; } else { // 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() ); } ob_start(); woocommerce_breadcrumb(); $output .= ob_get_clean(); $output .= '</div></div>'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_gecko_child_wc_page_head', 15 );
and below code to gecko-child > style.css
.term-description { padding: 30px 0; max-width: 1170px; margin: 30px auto; width: 100% }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 9, 2021 at 4:16 pm #40360
Thank you that partially worked!
How to move text at the bottom of the page, below products?
Or if there is a way to leave this as it is and also add some extra text below products?
-
February 10, 2021 at 7:03 pm #40367
Hi,
Can you please renew your support and send me your site url and login credentials to check.
thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 3, 2021 at 5:07 pm #40699This reply has been marked as private.
-
March 3, 2021 at 6:19 pm #40700
Hi,
Thank you for renew your support.
Please change code in 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 ); }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 3, 2021 at 6:37 pm #40701This reply has been marked as private.
-
March 3, 2021 at 8:12 pm #40702
Hi,
1. What you want change for pagination?
2. You can change background color for the text by add below code to gecko-child > style.css
.term-description { padding: 30px 10px; text-align: left; background: #f6f6f8; }
and change #f6f6f8 with your color.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 3, 2021 at 8:13 pm #40703
I’m sorry, no changes to pagination
the text alignment is centered. Can this change?
-
March 3, 2021 at 8:14 pm #40704
Yes, the code i sent you change align text to left.
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.