• Resolved changetherules.online

    (@changetherulesemail)


    Is it possible to have 2 different Drag & Drop Uploader? I have 2 contact forms in different languages and I want the text on each contact form Drag & Drop Uploader different, like english on form 1 and different language on form 2. Thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @changetherulesemail ,

    Did you use any plugin for your translation like WPML or Polylang?

    Please let me know.

    Glen

    Thread Starter changetherules.online

    (@changetherulesemail)

    Hi there Glen, Nope there is no plugin for the dual-language site, I created 2 separate pages for English and the other language, which is part of the requirements. Though Contact form 7 can be duplicate but the upload function can’t. Thanks

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @changetherulesemail sorry for the late reply.

    Try to update to the latest version 1.3.6.3.

    In your theme functions.php file add this code.

    add_filter('dnd_cf7_data_options','change_cf7_upload_options');
    
    function change_cf7_upload_options( $options ) {
      global $post;
      if( $post->ID == YOUR_PAGE_ID ) {
         $options['text'] = 'Drag & Drop Files Here';
         $options['or_separator'] = 'or';
         $options['browse'] = 'Browse Files'
      }
      return $options;
    }

    Change YOUR_PAGE_ID of the page you want to display different language/text.

    If it’s not clear or you need assistance just let me know.

    Glen

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Two different Drag & Drop Uploader’ is closed to new replies.