Home › Forums › Themes Support › Claue › How to move the description in the Products category down?
- This topic has 8 replies, 2 voices, and was last updated 5 years, 9 months ago by itamar.
-
AuthorPosts
-
-
March 6, 2019 at 3:12 pm #29478itamarSupport Expired
hi
I try to pass the description of the product categories below to the products and do not succeed
I have already used every function or suggestion of developers from all over the Internet (I’m a developer)
https://jewish.shop/pc/tallit (Example)
(Right now I’m using Elementor To fix the problem – but this creates a problem that displays the additional products on the pagination)
What to do?
-
March 6, 2019 at 4:55 pm #29489HarrySupport Expired
Hi,
Thank you for choosing our theme.
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', 100 ); } 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 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 6, 2019 at 5:21 pm #29493itamarSupport Expired
Thanks for the quick response
Now completely do not see the description ….https://jewish.shop/pc/tzitzit – Example
(I canceled the elementor)
-
March 6, 2019 at 5:31 pm #29496HarrySupport Expired
Hi,
Please add more below code to claue-child > style.css
.term-description { display: block; }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 6, 2019 at 5:33 pm #29498itamarSupport Expired
-
March 7, 2019 at 5:10 pm #29510HarrySupport Expired
Hi,
Did you try clear cache of kinsta CDN?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 19, 2019 at 12:52 pm #29735itamarSupport Expired
i see the description 2 time
https://jewish.shop/pc/judaica/shabbat-judaica/challah-boards (Example)
-
March 19, 2019 at 4:45 pm #29738HarrySupport Expired
I help you corrected code and it now ok.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 19, 2019 at 4:52 pm #29740itamarSupport Expired
thx!
-
-
AuthorPosts
You must be logged in to reply to this topic.