• Hi there

    Please assist me.
    The “testimonials carousel” that I have set up twice on the page does not carousel. In the page builder it looks beautiful, but when I open the website the items are stacking and there is no carousel feature.

    How can I get it to rather carousel? Have I missed a setting somewhere?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • hannah

    (@hannahritner)

    Hi,
    Just to confirm, in your Testimonials block settings you have set the Layout to Carousel, correct? And the carousel is working in the editor?

    Hannah

    Thread Starter olivewebcreative

    (@olivewebcreative)

    Yes the setting is on carousel and is working perfectly in the editor

    hannah

    (@hannahritner)

    It’s possible you have a plugin that is conflicting with Kadence Blocks. I suggest deactivating your plugins to test. Can you also tell me what theme you’re using?
    Thanks!

    Hannah

    I’m seeing this javascript placed in your footer:

    
     var recipeObject = document.getElementById('recipeGoesHere');
        var printArea = document.getElementById('printMe');
        //printArea.innerHTML += recipe.innerHTML; 
        var mainImage = document.getElementsByClassName("post-thumbnail");
        var i;
        for (i = 0; i < mainImage.length; i++) {
            var x = mainImage[i].innerHTML;
          if (x.includes("srcset")){
              if (x.includes("1000")){
                var correctArrayID = i;
              }
          }
              
         }
        
        var imageAddress = mainImage[correctArrayID].innerHTML;
         
        var nStart = imageAddress.indexOf("1000w");
        var nEnd = imageAddress.indexOf("231w");
        var imageAddress1 = imageAddress.slice(nStart+7, nEnd-1);
        //var n = imageAddress.includes("srcset");
        imageAddress = "<img src='"+imageAddress1+"' />";
       
        var recipeTitle1 = document.getElementsByClassName("entry-title");
        var recipeTitle = recipeTitle1[0].innerHTML;
        var recipe1 = recipeObject.innerHTML;
        nStart = recipe1.indexOf("recipe-card-author");
        
        var recipe = "<div class='recipe-card-along-image'>";
        
        recipe += recipe1.slice(nStart+59);
        printArea.innerHTML = '<div id="closingLogoHolder"><img src="https://mynourishedplate.co.za/wp-content/uploads/2020/05/MyNourishedPlatePrintImageSmaller-1.jpg" /></div><div class="centerPage"><h1 class="entry-title">'+recipeTitle+'</h1></div>'+imageAddress+''+recipe;
        
        function printRecipe()
         {
            window.print();
         }
            
        //printArea.innerHTML += '<img src="'+imageAddress+'" />';
        //printArea.innerHTML += recipe.innerHTML;`
    

    It appears that is breaking the page.

    Ben

    Thread Starter olivewebcreative

    (@olivewebcreative)

    Oh boy! Blossoms Pin. Have had so many headaches with it.

    Is there a way around the clash?

    I don’t see it as a “clash”.

    that javascript just needs to be fixed.

    Ben

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Carousel not working. Items are stacking’ is closed to new replies.