Forum Replies Created
-
AuthorPosts
-
artimizationSupport 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
artimizationSupport Expiredadd_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.
artimizationSupport ExpiredHi, 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
artimizationSupport ExpiredHi, 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.
artimizationSupport ExpiredHello 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
artimizationSupport ExpiredThis reply has been marked as private.artimizationSupport ExpiredHello its work but i only show the scroll in brand sub menu not all menus. Currently showing in all menus.
I add class in brand menu (.scroll-menu). please give me a code with this class so the scroll apply only in brands menus
Regards
omer
artimizationSupport Expiredhello,
the above code you given its not working. product showing in carousel slider on the page load once page fully load products gone. also product not showing for the same category.
https://drive.google.com/file/d/1F3VN-LSfuGiX_n7GSsAiUAoj1s4XpXxM/view
Please check the video, or i give you ftp access to fix this part ?
Reagrds
Omer
artimizationSupport ExpiredHello.
Any update for me Thankyou
Regards
omer
artimizationSupport ExpiredGreetings,
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
-
AuthorPosts