New Landing How can we help? Atelier Swift page builder in category description

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #283267
    sopmarteau
    Member
    Post count: 22

    Hello,

    I would like to know if there is any way to activate the swiftpage builder for categories descriptions? I have installed the plugin Woocommerce brand and it created me brands categories, just like product categories. I would like to custom this brand category with columns, images, etc.. using the swiftpage builder…

    Thanks in advance!
    Sophie

    Attachments:
    You must be logged in to view attached files.
    #283290
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Unfortunately that’s not possible using the Page Builder in the categories.
    But will forward your suggestion to the development team.

    -Rui

    #283373
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Can you please re-upload that image so that we can check it?

    Thanks,

    – Ed

    #283391
    sopmarteau
    Member
    Post count: 22

    Here’s the image! Thank you!

    Attachments:
    You must be logged in to view attached files.
    #283423
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    For some reason it doesn’t seem to upload, can you try using an image hosting service?

    – Ed

    #283446
    sopmarteau
    Member
    Post count: 22
    #283493
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    While you can’t use the page builder there, you can try and copy the shortcodes across from a page where you have created the content.

    We’ll consider functionality there in future updates.

    Thanks,

    – Ed

    #283550
    sopmarteau
    Member
    Post count: 22
    This reply has been marked as private.
    #283670
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Seems to be because WooCommerce doesn’t process shortcodes there. Try adding this code to your functions.php file (ideally in child theme).

    
    if ( ! function_exists( 'woocommerce_taxonomy_archive_description' ) ) {
    	/**
    	 * Show an archive description on taxonomy archives.
    	 *
    	 * @subpackage	Archives
    	 */
    	function woocommerce_taxonomy_archive_description() {
    		if ( is_tax( array( 'product_cat', 'product_tag' ) ) && 0 === absint( get_query_var( 'paged' ) ) ) {
    			$description = wc_format_content( term_description() );
    			if ( $description ) {
    				echo '<div class="term-description">' . do_shortcode($description) . '</div>';
    			}
    		}
    	}
    }
    if ( ! function_exists( 'woocommerce_product_archive_description' ) ) {
    	/**
    	 * Show a shop page description on product archives.
    	 *
    	 * @subpackage	Archives
    	 */
    	function woocommerce_product_archive_description() {
    		// Don't display the description on search results page
    		if ( is_search() ) {
    			return;
    		}
    		
    		if ( is_post_type_archive( 'product' ) && 0 === absint( get_query_var( 'paged' ) ) ) {
    			$shop_page   = get_post( wc_get_page_id( 'shop' ) );
    			if ( $shop_page ) {
    				$description = wc_format_content( $shop_page->post_content );
    				if ( $description ) {
    					echo '<div class="page-description">' . do_shortcode($description) . '</div>';
    				}
    			}
    		}
    	}
    }

    – Ed

    #283710
    sopmarteau
    Member
    Post count: 22

    Hello Ed,

    unfortunately it didn’t change anything… I put it in my child theme function.php just after “load text language”.

    #283720
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hmm it appears that the do_shortcode is already ran, so it may be due to something needed to be changed in the page builder. Unfortunately we don’t have any other code we can provide a the moment. As we said, we’ll do our best to support this in the future.

    – Ed

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register