Viewing 1 replies (of 1 total)
  • Thread Starter airplanenoise

    (@airplanenoise)

    solved this via javascript – happy to share my solution, a bit of a hack, but works:

    jQuery(document).ready(function() {
       currentLanguageSlug = '/pt/'; // I find this programmatically before, this is just to show you 
       currentNextUrl = jQuery('body.page-template-page-request').find('input.wpcf7-multistep').val(); 
       newNextUrl = currentNextUrl.replace('/make-a-request/', currentLanguageSlug + '/make-a-request/'); 
       jQuery('body.page-template-page-request').find('input.wpcf7-multistep').val(newNextUrl);
    });

    if there is a better way, let me know ??

    PS: the shortcode for conditional display you have on your site [trp_language language="en_US"] English content only [/trp_language] doesn’t work inside of Contact 7, it seems.

Viewing 1 replies (of 1 total)
  • The topic ‘contact7 multistep + translatepress’ is closed to new replies.