Home Forums WoodMart support forum 4 questions to the developers

4 questions to the developers

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #85565

    Alexander
    Participant

    Thank you very much for the modern and clean design that made our online store fresh and unique, Woodmart theme have blown my mind!

    We have to you there are technical issues that we can not still solve and it slows down the launch of our project:

    1. How can we add a second category description, we want the first category description to be before the default products + the second category description under the products? (see screenshot)

    2. How can we manage files in the woodmart/inc and woodmart/woocommerce folders to change them in our child theme “wodmart-child”, i mean how can we move these folders to a child theme? For example, here we need to change the element tag <h5> to element <div>:

    if( ! function_exists( 'woodmart_sorting_widget' ) ) {
    	function woodmart_sorting_widget() {
    		$filter_widget_class = woodmart_get_widget_column_class( 'filters-area' );
    		the_widget( 'WOODMART_Widget_Sorting', array( 'title' => esc_html__('Sort by', 'woodmart') ), array(							
    			'before_widget' => '<div id="WOODMART_Widget_Sorting" class="woodmart-widget widget filter-widget ' . esc_attr( $filter_widget_class ) . ' woodmart-woocommerce-sort-by">',
    			'after_widget'  => '</div>',
    			'before_title'  => '<h5 class="widget-title">',
    			'after_title'   => '</h5>') 
    		);
    	}
    }

    Similar to this example, we will need to edit other files in the woodmart/inc and woodmart/woocommerce folders.

    3. How can we save our translations in the folder woodmart/languages? Because in every update the themes will be erasing. Is it possible to add them to the child theme “wodmart-child”?

    4. How to swap “Menu” and “Categories” in the mobile version? (see screenshot)

    Thank You!

    Attachments:
    You must be logged in to view attached files.
    #85569

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    1. Unfortunately, we don’t have an instruction for such kind of customization. It may require to add some extra textarea for category interface in the WooCommerce dashboard, then save it in the database and display on the frontend.

    2. All these functions can be easily copied to the child theme’s functions.php file and edited

    function woodmart_sorting_widget() {
    		$filter_widget_class = woodmart_get_widget_column_class( 'filters-area' );
    		the_widget( 'WOODMART_Widget_Sorting', array( 'title' => esc_html__('Sort by', 'woodmart') ), array(							
    			'before_widget' => '<div id="WOODMART_Widget_Sorting" class="woodmart-widget widget filter-widget ' . esc_attr( $filter_widget_class ) . ' woodmart-woocommerce-sort-by">',
    			'after_widget'  => '</div>',
    			'before_title'  => '<h5 class="widget-title">',
    			'after_title'   => '</h5>') 
    		);
    	}

    3. You need to save translations folder in wp-content/languages/themes/ folder to prevent losing changes after the update. Watch our video tutorial regarding this https://www.youtube.com/watch?v=D3NsDdMzsls

    4. We suggest you to change their names in Loco Translate and just rearrange your menu items in Appearance -> Menus.

    Kind Regards
    XTemos Studio

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