Home › Forums › WoodMart support forum › category description position
category description position
- This topic has 6 replies, 2 voices, and was last updated 2 years, 2 months ago by
Elise Noromit.
-
AuthorPosts
-
February 19, 2023 at 9:12 pm #444461
abdulkader.tarrab.1992ParticipantI can’t chenge category description position in Before product grid
video for problem :
https://www.loom.com/share/c2a103a161dc4be6af8c0f4f9967bdd7February 20, 2023 at 7:59 am #444529
Elise NoromitMemberHello,
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
February 20, 2023 at 11:33 am #444579
abdulkader.tarrab.1992ParticipantHello 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/aaf3ef11c93c1317ef1abeae52e0c398February 20, 2023 at 3:56 pm #444685
abdulkader.tarrab.1992ParticipantI think there is a bug in your archive-product.php file
I have attached the patch file for youFebruary 20, 2023 at 3:57 pm #444686
abdulkader.tarrab.1992Participantfile rar
February 20, 2023 at 3:58 pm #444687
abdulkader.tarrab.1992Participant<?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();
}
?>February 21, 2023 at 6:58 pm #445162
Elise NoromitMemberHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register