Home › Forums › Themes Support › Claue › product catagory content box
- This topic has 26 replies, 3 voices, and was last updated 4 years, 1 month ago by cata78.
-
AuthorPosts
-
-
September 19, 2020 at 2:16 am #38572artimizationSupport Expired
Greeting,
I need to add content 500 words for each category page but the issue is all content showing on the header area. I need to show content box below the products, see attached link
Screen shot
https://drive.google.com/file/d/1HFYqMDxfzfiPWleIu4zDR46nUt0vJp96/view?usp=sharing
category page url:
https://www.lifestyle-collection.com.pk/product-category/watches/mens-watches/casio-edifice-mens/
Regards
omer
-
September 19, 2020 at 1:17 pm #38573HarrySupport Expired
Hi,
Please add below code to claue-child > functions.php
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_before_main_content', 'jas_claue_child_wc_page_head', 15 );
and add below code to claue-child > style.css
.term-description { display: block; width: 100%; max-width: 1170px; margin: 30px auto; }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
September 23, 2020 at 10:44 pm #38630artimizationSupport Expired
Greetings,
Above mention code is working perfectly fine, but the issue is all related product showing in grid style. i want same old carousel slider style for related products.
Check video related product showing:
https://drive.google.com/file/d/1s9MIX8dmFUDVz-SubT8fGDPsBkKHI8iF/view?usp=sharingRegard
omer
-
October 6, 2020 at 2:02 am #38755artimizationSupport ExpiredThis reply has been marked as private.
-
October 6, 2020 at 4:47 pm #38761HarrySupport Expired
Hi,
please change code to
add_action( 'wp_head', 'remove_my_action' ); function remove_my_action(){ remove_action( 'woocommerce_before_main_content', 'jas_claue_wc_page_head', 15 ); } add_action( 'woocommerce_after_main_content', 'jas_claue_wc_page_head', 15 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 13, 2020 at 6:42 pm #38820artimizationSupport Expired
Hello thanks for your reply.
I want only H1 heading move below to the content box. so the top banner is no text, all content below the watch,
I want banner at the top & heading or content box bottom,
check the video
https://drive.google.com/file/d/13EjDJTfSQwSNPlO7AYxnBpUQwgC_h3iG/view
Regards
omer
-
October 13, 2020 at 6:45 pm #38821artimizationSupport Expired
Hi, please change code to
add_action( 'wp_head', 'remove_my_action' ); function remove_my_action(){ remove_action( 'woocommerce_before_main_content', 'jas_claue_wc_page_head', 15 ); } add_action( 'woocommerce_after_main_content', 'jas_claue_wc_page_head', 15 );
Kind regards
This code is work but i want banner at the top.
Code rendered image
https://drive.google.com/file/d/1erGh0suZXcS9jYsQSkvtExc-RVqlz9Tz/view?usp=sharinghttps://drive.google.com/drive/u/0/my-drive- This reply was modified 4 years, 1 month ago by artimization.
-
October 13, 2020 at 10:37 pm #38831HarrySupport Expired
Hi,
Please change code to
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() { $output = '<div class="page-head pr tc"><div class="jas-container pr">'; $output .= '</div></div>'; } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 ); function jas_claue_child_wc_description() { 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="wc-description 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_description', 15 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 13, 2020 at 11:17 pm #38832artimizationSupport Expired
Hi, Please change code to
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() { $output = '
'; } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 ); function jas_claue_child_wc_description() { 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 = ''; $output .= ''; echo wp_kses_post( $output ); } add_action( 'woocommerce_after_main_content', 'jas_claue_child_wc_description', 15 );'; 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 .= 'Kind regards
Still not fixed my issue please check the attached link
Banner is gone, content box showing above the product,Wrong: https://drive.google.com/file/d/1fQ_uukb6TzJ9AMb-deguyQYw09GnCx__/view?usp=sharing
I need this: https://drive.google.com/file/d/1nhwQJ2XPvg9vA-fTRLsbcnQfd12VZM2K/view?usp=sharing
Live page: https://www.lifestyle-collection.com.pk/product-category/watches/mens-watches/casio-edifice-mens/
I only want to move H1 heading to the content box below the products
Regards
omer
-
October 13, 2020 at 11:21 pm #38833artimizationSupport Expired
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 = ‘‘;
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 .= ‘‘;
echo wp_kses_post( $output );
}
add_action( ‘woocommerce_before_main_content’,
‘jas_claue_child_wc_page_head’, 15 );Above code is working perfectly fine, Please add heading setting in the code.
Thank you
- This reply was modified 4 years, 1 month ago by artimization.
-
October 13, 2020 at 11:23 pm #38835artimizationSupport Expired
Hi,
Please add below code to claue-child > functions.php
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 = '
'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 );'; 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 .= 'and add below code to claue-child > style.css
.term-description { display: block; width: 100%; max-width: 1170px; margin: 30px auto; }
Kind regards
Above code is working perfectly fine, Please add heading setting in the code.
Thank you
-
October 13, 2020 at 11:26 pm #38836artimizationSupport Expired
Above code is working perfectly fine, Please add heading setting in the code.
Thank you
Above code is working perfectly fine, Please add heading setting in the code.
Thank you
-
October 14, 2020 at 12:39 pm #38840HarrySupport Expired
You’re welcome.
Have a nice day!
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 14, 2020 at 6:37 pm #38847artimizationSupport Expired
Thankyou but my heading issue is not done yet.
Please check the video what i want,
https://drive.google.com/file/d/1OcX4YKlcj-tyDNqBj3MvUNYGDpENnqjj/view
Your support is much appreciated .
Regards
Haris
-
October 14, 2020 at 8:48 pm #38849HarrySupport Expired
Please change code to
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() { remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); $output = '<div class="page-head pr tc pt__20 pb__20"><div class="jas-container pr">'; $output .= '<p class="mg__0"> </p>'; $output .= '</div></div>'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 ); function jas_claue_child_wc_description() { 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="wc-description pr tc"><div class="jas-container pr">'; if ( is_search() ) { $output .= '<h1 class="mb__5 cd">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>'; } elseif ( is_shop() ) { $output .= '<h1 class="mb__5 cd">' . 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="cd">' . single_cat_title( '', false ) . '</h1>'; //$output .= do_shortcode( category_description() ); add_action( 'woocommerce_after_main_content', 'woocommerce_taxonomy_archive_description', 40 ); add_action( 'woocommerce_after_main_content', '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_description', 15 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 14, 2020 at 9:07 pm #38850artimizationSupport Expired
Bingooo we are almost done, just position error please see the attached video.
https://drive.google.com/file/d/1QQ-clYfCJzSGY1mq7Tg0OL2R-xjD5bs3/view
Regards
omer
-
October 14, 2020 at 9:21 pm #38851HarrySupport Expired
please change code to
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() { remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); $output = '<div class="page-head pr tc pt__20 pb__20"><div class="jas-container pr">'; $output .= '<p class="mg__0"> </p>'; $output .= '</div></div>'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 ); function jas_claue_child_wc_description() { 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="wc-description pr tc"><div class="jas-container pr">'; if ( is_search() ) { $output .= '<h1 class="mb__5 cd">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>'; } elseif ( is_shop() ) { $output .= '<h1 class="mb__5 cd">' . 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="cd">' . 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_shop_loop', 'jas_claue_child_wc_description', 40 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 14, 2020 at 9:33 pm #38852artimizationSupport Expired
99% done. box is align perfectly just content box is hide, Please check the video:
https://drive.google.com/file/d/1w-aQzkOM8wYXg_Ot_KaskgPlsCb9Q-as/view
Regards
omer
-
October 14, 2020 at 10:14 pm #38853HarrySupport Expired
Please change code to
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() { remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); $output = '<div class="page-head pr tc pt__20 pb__20"><div class="jas-container pr">'; $output .= '<p class="mg__0"> </p>'; $output .= '</div></div>'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 ); function jas_claue_child_wc_description() { 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="wc-description pr tc"><div class="jas-container pr">'; if ( is_search() ) { $output .= '<h1 class="mb__5 cd">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>'; } elseif ( is_shop() ) { $output .= '<h1 class="mb__5 cd">' . 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="cd">' . 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_shop_loop', 'jas_claue_child_wc_description', 40 );
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 14, 2020 at 11:41 pm #38854artimizationSupport Expired
Bingooo Superb Now code is working perfectly.
Thank you so much for your support.
Regards
Omer
-
October 16, 2020 at 1:42 pm #38869cata78Support Expired
Hi,
I put the code below on functions.php and works good.
This code removed completely the h1 title and description from header and moved it on footer. Now i want to put another h1 title back on it’s place, but i want to be custom this time. I want to modify manually each h1 from header and give a different name, not the page name.
Also i want to have the option to modify meta title and meta description on each category/subcategory.
Thanks in advance!
Please change code to
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() { remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); $output = '
'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 ); function jas_claue_child_wc_description() { 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 = ''; $output .= '<p class="mg__0"> </p>'; $output .= ''; echo wp_kses_post( $output ); } add_action( 'woocommerce_after_shop_loop', 'jas_claue_child_wc_description', 40 );'; if ( is_search() ) { $output .= '<h1 class="mb__5 cd">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>'; } elseif ( is_shop() ) { $output .= '<h1 class="mb__5 cd">' . 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="cd">' . 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 .= '-
October 16, 2020 at 4:45 pm #38872HarrySupport Expired
Hi @cata78,
1. Please change code to move h1 on top.
/* 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_before_main_content', 'jas_claue_child_wc_page_head', 15 );
2. The h1 is now category title
3. I recommend use plugin Rank Math https://wordpress.org/plugins/seo-by-rank-math/
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
October 16, 2020 at 4:50 pm #38873cata78Support Expired
I changed the code with the one you give me and text disappeared from the footer and h1 moved back to header, which is the same this as i didn’t put any code.
-
October 16, 2020 at 4:54 pm #38874HarrySupport Expired
Please add below code to claue-child > style.css
.term-description { display: block; width: 100%; max-width: 1170px; margin: 30px auto; }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
October 16, 2020 at 5:09 pm #38877cata78Support Expired
The code was already there. Still nothing happen.
The description from footer disapeared completely.
-
October 16, 2020 at 6:48 pm #38881HarrySupport Expired
I check on my side the h1 on background head and the description text of category on footer. https://prnt.sc/v0j15j https://prnt.sc/v0j1fh
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
October 17, 2020 at 12:45 pm #38882cata78Support Expired
Was a caching problem and i cleared the cookies. The code works perfectly.
-
-
AuthorPosts
You must be logged in to reply to this topic.