Home Forums WoodMart support forum single product page accordeon tab

single product page accordeon tab

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #221709

    BertranddesmetsWM
    Participant

    Hi,

    I have two questions about single product page accordéon tab :

    1. I would like the accordeon tab (product/brand description…) to be closed when opening the page. Is is now on open mode.
    2. Some titles in the accordeon tab are in English, should I use a plugin like Loco Translate to translate this content?

    Screenshot attached.
    Thanks a lot for your help!
    Regards,
    Bertrand

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

    Hello,

    Add the snippet to the Custom JS section in Theme Settings:

    setTimeout(function() {
    	var $tab = jQuery('.woodmart-tab-wrapper').find('a.active');
    		$tab.siblings('.wc-tab').hide();
    	  $tab.removeClass('active');
    }, 10);

    You can translate all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3

    Best Regards

    #221852

    BertranddesmetsWM
    Participant

    Hi,

    Thanks for your quick answer, works like a charm!
    Last question about theme translation : what plugin do you recommend for multilingual purposes? , Is WPML plugin the most compatible?

    Thank you!
    Regards,
    Bertrand

    #221866

    Hello,

    WPML is 100% compatible with our theme. We recommend it.

    Best Regards

    #221876

    BertranddesmetsWM
    Participant

    Thanks for your support!
    Regards,
    Bertrand

    #221898

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

    #283119

    BertranddesmetsWM
    Participant

    Hi,

    I would like to reopen this for some JS updates:

    This JS line is not working anymore.

    setTimeout(function() {
    	var $tab = jQuery('.woodmart-tab-wrapper').find('a.active');
    		$tab.siblings('.wc-tab').hide();
    	  $tab.removeClass('active');
    }, 10);

    I tried to change Woodmart with wd but it won’t work.
    Could this be caused by last Woodmart updates?

    Thanks for your enlightment!
    Regards,

    #283264

    Hello,

    Please add this code to the Theme Settings > Custom JS on Document ready:

    if (jQuery(window).width() <= 1920) {
    	setTimeout(function() {
    		var $tab = jQuery('.wd-tab-wrapper').find('a.active');
    			$tab.siblings('.wc-tab').hide();
    			$tab.removeClass('active');
    	}, 10);
    }

    Best Regards

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