Home Forums WoodMart support forum category description position

category description position

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #444461

    I can’t chenge category description position in Before product grid
    video for problem :
    https://www.loom.com/share/c2a103a161dc4be6af8c0f4f9967bdd7

    #444529

    Hello,

    Most likely it was a cache issue, now it works: https://gyazo.com/16cff843be61d0efa683e7c0feccdc87

    If you have any questions please feel free to contact us.

    Best Regards

    #444579

    Hello Elise Noromit

    Please note that I chose “Before product grid” and it stayed on the “After product grid” option.
    Note that I am not currently using cache plugin.
    https://gyazo.com/aaf3ef11c93c1317ef1abeae52e0c398

    #444685

    I think there is a bug in your archive-product.php file
    I have attached the patch file for you

    #444686

    file rar

    #444687

    <?php

    defined( ‘ABSPATH’ ) || exit;

    if( woodmart_is_woo_ajax() === ‘fragments’ ) {
    woodmart_woocommerce_main_loop( true );
    die();
    }

    if ( ! woodmart_is_woo_ajax() ) {
    get_header( ‘shop’ );
    } else {
    woodmart_page_top_part();
    }

    $cat_desc_position = woodmart_get_opt( ‘cat_desc_position’ );
    ?>

    <?php
    /**
    * Hook: woocommerce_sidebar.
    *
    * @hooked woocommerce_get_sidebar – 10
    */
    do_action( ‘woocommerce_sidebar’ );
    ?>

    <?php
    /**
    * Hook: woocommerce_before_main_content.
    *
    * @hooked woocommerce_output_content_wrapper – 10 (outputs opening divs for the content)
    * @hooked woocommerce_breadcrumb – 20
    * @hooked WC_Structured_Data::generate_website_data() – 30
    */
    do_action( ‘woocommerce_before_main_content’ );
    ?>

    <?php do_action( ‘woodmart_before_shop_page’ ); ?>

    <?php
    if ( $cat_desc_position == ‘before’ ) {
    /**
    * Hook: woocommerce_archive_description.
    *
    * @hooked woocommerce_taxonomy_archive_description – 10
    * @hooked woocommerce_product_archive_description – 10
    */
    do_action( ‘woocommerce_archive_description’ );
    //NewEdit add here
    do_action( ‘woocommerce_after_main_content’ );
    }
    ?>

    <?php woodmart_enqueue_inline_style( ‘woo-shop-predefined’ ); ?>
    <?php woodmart_enqueue_inline_style( ‘woo-mod-shop-loop-head’ ); ?>

    <div class=”shop-loop-head”>
    <div class=”wd-shop-tools<?php echo woodmart_get_old_classes( ‘ woodmart-woo-breadcrumbs’ ); ?>”>
    <?php if ( woodmart_get_opt( ‘shop_page_breadcrumbs’, ‘1’ ) ) : ?>
    <div class=”wd-breadcrumbs”>
    <?php woodmart_current_breadcrumbs( ‘shop’ ); ?>
    </div>
    <?php endif; ?>

    <?php woocommerce_result_count(); ?>
    </div>
    <div class=”wd-shop-tools<?php echo woodmart_get_old_classes( ‘ woodmart-shop-tools’ ); ?>”>
    <?php if ( woocommerce_product_loop() ) : ?>
    <?php
    /**
    * Hook: woocommerce_before_shop_loop.
    *
    * @hooked wc_print_notices – 10
    * @hooked woocommerce_result_count – 20
    * @hooked woocommerce_catalog_ordering – 30
    */
    do_action( ‘woocommerce_before_shop_loop’ );
    ?>
    <?php endif; ?>
    </div>
    </div>

    <?php do_action( ‘woodmart_shop_filters_area’ ); ?>

    <?php woodmart_sticky_loader(); ?>

    <?php do_action( ‘woodmart_woocommerce_main_loop’ ); ?>

    <?php
    if ( $cat_desc_position == ‘after’ ) {
    /**
    * Hook: woocommerce_archive_description.
    *
    * @hooked woocommerce_taxonomy_archive_description – 10
    * @hooked woocommerce_product_archive_description – 10
    */
    do_action( ‘woocommerce_archive_description’ );

    //NewEdit add here
    do_action( ‘woocommerce_after_main_content’ );
    }
    ?>

    <?php
    /**
    * Hook: woocommerce_after_main_content.
    *
    * @hooked woocommerce_output_content_wrapper_end – 10 (outputs closing divs for the content)
    */

    //NewEdit Delete here

    //do_action( ‘woocommerce_after_main_content’ );
    ?>

    <?php
    if ( ! woodmart_is_woo_ajax() ) {
    get_footer( ‘shop’ );
    } else {
    woodmart_page_bottom_part();
    }
    ?>

    #445162

    Hello,

    You insert the content into the Extra description which is shown after the product grid. Please move the content into the Category description this field is configured by the Theme Settings.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 7 posts - 1 through 7 (of 7 total)