Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you’re still interested in a solution than i might got something.

    in functions.php register jquery file

    add_action('wp_enqueue_scripts','jquery');
    function jquery() {
      wp_register_script('jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js', true);
      wp_enqueue_script('jquery');
    }

    next go to plugin folder and in the before-after-image-slider.php

    delete the following content:

    line 24 – 31

      ?>
      <script type="text/javascript">
      jQuery(document).ready(function($){
      $('.ba-slider').beforeAfter();
      });
      </script>
    
      <?php

    and at last in folder js modify the before-after.min.js

    Copy the code from the JS part from the codepen demo:

    https://codepen.io/bamf/pen/jEpxOX

    tried it and worked. can now slide through multiple images and the slider recognizes each seperately

    Thread Starter devlink1337

    (@devlink1337)

    I see you really have updated the code but just for your information, you updated the wrong line of code.

    Line 1606 and 1607

          if(mkdir($new_folder_path)) {
    		  @chmod($new_folder_path, 0755);
    [...]

    realised it after updating the plugin.

    Thread Starter devlink1337

    (@devlink1337)

    I discovered that there might be an issue with our configuration. I successfully tested it on a local nginx installation, installed the plugin there and it worked fine.
    The changes are a good workaround just as I said everything else worked as expected on the server. I would definately recommend the changes made, in case some other stupids do the same mistakes as we did ??

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