Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nilskdc

    (@nilskdc)

    That did the job, thank you so much Simon and Maximus
    If I understand correctly, I can delete the whole set of lines so that jquery doesn’t get loaded from an external source (just tried that, and everything seems to be working fine) :

    if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
    function my_jquery_enqueue() {
       wp_deregister_script('jquery');
       wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
       wp_enqueue_script('jquery');
    }

    The only thing that is not functioning anymore is a script for smooth scrolling on hover I had put on the slides and on various other pages :

    <p><script>
    $(function() {
    	// code from https://css-tricks.com/snippets/jquery/smooth-scrolling/
      $('a[href*=#]:not([href=#])').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
          var target = $(this.hash);
          target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
          if (target.length) {
          // stops scrolling  
        $('html,body').on("scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove", function(){
           $('html,body').stop();
        });
    	// change top-x to create the additional off set and following number to specify scroll delay       
            $('html,body').animate({
              scrollTop: target.offset().top-20
            }, 600);
            return false;
          }
        }
      });
    });
    </script></p>

    If I put this script back on the slides, they disappear once again. And on the other pages where the script is present, it is not functioning anymore. Certainly has to do with the wrong way I use jquery, as you two pointed out (not being a developer, I tend to cut and paste what I find on the net ;-). I will try to figure out. If you have any advice, I’d be glad to hear

    Thanks once again, happy to find my slides back ??

    Thread Starter nilskdc

    (@nilskdc)

    Hi,
    I am not using a Page Builder and yes, I already tried creating a new slider from scratch but still nothing appears
    I just sent you a contact form, and truly appreciate your help
    Nils

    Thread Starter nilskdc

    (@nilskdc)

    Oh and I forgot to mention : I also tried to disable all other plugins to check for owl slider incompatibilities but with no result

    Hi Simon
    Looking forward for this update. But I hope it will still support slides with custom html content (I am not sure wether owl carousel 2 does ?)

    Thread Starter nilskdc

    (@nilskdc)

    Actually I did not have an IOS/Safari vs Android/Chrome problem, but a slide overlapping over the following one because my slide content made of CSS3 shapes did not fit into the Iphone5 screen width.

    I just don’t understand why this same content fits in the 320px of the Iphone5 screen width when put into a regular wordpress page, and why it does not fit when put into a slide.

    Anyhow, I solved my problem by reducing the width of my content by 40px ??

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