Your account expired support, please renew to get your support.

Forum Replies Created

Viewing 10 posts - 21 through 30 (of 39 total)
  • Author
    Posts
  • in reply to: product catagory content box #38835
    artimization
    Support 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 = '
    '; 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 );

    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

    in reply to: product catagory content box #38833
    artimization
    Support 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, 2 months ago by artimization.
    in reply to: product catagory content box #38832
    artimization
    Support 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 = '
    '; $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 = '
    '; 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_after_main_content', 'jas_claue_child_wc_description', 15 );

    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

     

     

     

     

     

     

     

     

     

     

     

     

     

    in reply to: product catagory content box #38821
    artimization
    Support 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, 2 months ago by artimization.
    in reply to: product catagory content box #38820
    artimization
    Support 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

     

    in reply to: product catagory content box #38755
    artimization
    Support Expired
    This reply has been marked as private.
    in reply to: Submenu scroll needed #38670
    artimization
    Support Expired

    Hello 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

     

    Home

    Regards

    omer

    in reply to: releted product showing incorrect #38636
    artimization
    Support Expired

    hello,

    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

     

     

     

    in reply to: releted product showing incorrect #38631
    artimization
    Support Expired

    Hello.

    Any update for me Thankyou

    Regards

    omer

    in reply to: product catagory content box #38630
    artimization
    Support 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=sharing

    Regard

    omer

Viewing 10 posts - 21 through 30 (of 39 total)