Forum Replies Created
-
AuthorPosts
-
November 8, 2024 at 9:06 pm in reply to: How to move category description text before products listings #44528
Hi, I also want to move description below products at category page. I tried paste your code, but wordpress shows syntax error, unexpected token “class” at line 36, and don’t want to save file functions.php.
This is line 36 at my functions.php:
$output = ‘<div class=”page-head pr tc”><div class=”jas-container pr”>’;
Hi,
Please edit code and use below code
/* 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 ); remove_action( 'woocommerce_single_product_summary', 'jas_claue_wc_single_social_share', 50 ); } function jas_claue_child_wc_single_social_share() { if ( cs_get_option( 'wc-social-share' ) ) { echo '<h3>Condividi su</h3>'; jas_claue_social_share(); } } add_action( 'woocommerce_single_product_summary', 'jas_claue_child_wc_single_social_share', 50 ); 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 );
The code you copy above not correct format.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioYou’re welcome, Isabelle!
Have a good day!Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioHi,
I checked your site and see theme outdated, please follow this topic https://support.janstudio.net/forums/topic/updating-the-theme/ top update theme and plugins to latest version.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioHi Rahim,
Please download at https://drive.google.com/file/d/1N3bDvgCcsyYAJ_QQaxm92QkyOsS59mtc/view?usp=drive_link
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioHi,
I’m sorry our theme and plugins deep override default gallery function. It can’t reset every where gallery to default.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioHi,
Please go to Claue > Theme Option > WooCommerce > Product Detail Setting > and follow this screenshot https://tppr.me/WxVlXA
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioHi,
You want to use default gallery for product page or any where?
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioSeptember 12, 2024 at 4:40 am in reply to: Critical error on Pages section when activating any version of php > 8 #44511Hi Chris,
Sorry for late reply.
I have checked under the PHP 8.2 and the PHP 8.3, and no errors found
It looks like your server or site configuration issue
There are some tips for the customer about how to investigate the issue as recommended by WordPress codex:
1. Turn on the debug mode in the wp-config.php, reproduce the issue and check the debug.log file for possible errors (https://developer.wordpress.org/advanced-administration/debug/debug-wordpress)
2. Deactivate caching plugins, all third party plugins and try again
3. Switch to the standard WordPress theme and try againKind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioThis reply has been marked as private.Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudioJuly 7, 2024 at 6:05 pm in reply to: An important security update is required for WooCommerce #44500Hi,
We submit update included version 7.7.2 of BakeryPageBuilder plugin. Please wait Envato team check and approve.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
AuthorPosts