How to make custom code mobile friendly?

Topic summary

Goal: Make a custom product-page reviews section mobile-friendly and swipable, matching the behavior on the referenced example site.

Context: The section works on desktop (PC-friendly). The author shared their current HTML/CSS and a screenshot to illustrate the target area.

Attempts/updates:

  • A helper provided multiple revised code snippets intended to fix mobile styling and add swipe/slider behavior.
  • Initial revisions led to errors (user shared error screenshots) and did not produce a mobile slider. The helper asked to remove earlier CSS; the user confirmed they did, but the slider still didn’t work.
  • Further “final” code updates were tested by the user but continued to fail to enable swipe on phones. A screenshot showed the layout still not behaving like a slider.

Theme/version note: The user is on Shopify’s Sense 11.0.0; the helper tested on Sense 10.0.0. It’s unclear if the version difference is the cause.

Current status: Unresolved. The helper requested access to the store to diagnose and implement a working mobile slider.

Artifacts: Code snippets and multiple screenshots (including error messages and mobile views) are central to understanding the issue.

Summarized with AI on January 14. AI used: gpt-5.

Code updated


  
  

  
    

      

        

          ### Vertrouwd door 
 350 000+ klanten.
        

        
          

            

              

                

                  
                  
                  
                  
                  
                

                Excellent

              

              ## 
              

Fantastisch! De aankomst van de tweede bestelling, ik wacht weer met spanning! Kwaliteitsproducten en uitstekende service. Ik beveel het zeker aan!

              
                Review by **Emma**
              

            

          

          
            

              

                

                  
                  
                  
                  
                  
                

                Excellent

              

              ## 
              

Absoluut perfecte maataanduiding en de pasvorm is fantastisch! Ik ben oprecht dankbaar. Bedankt voor de juiste levering!

              
                Review by **Floris**
              

            

          

  

    

      

        
        
        
        
        
      

      Excellent

    

    

Deze webshop heeft me echt verbaasd. Snelle verzending en hoogwaardige producten. Ik zal hier zeker weer winkelen!

    
      Review door **Lisa**
    

  

  

    

      

        
        
        
        
        
      

      Excellent

    

    
    

Deze webshop heeft een geweldige selectie en uitstekende klantenservice. Ik ben zeer tevreden met mijn aankoop.

    
      Review door **John**
    

  

  

    

      

        
        
        
        
        
      

      Excellent

    

    

Geweldige ervaring! Deze webshop heeft een uitstekende klantenservice en een ruime keuze aan producten. Mijn bestelling kwam snel aan en was in perfecte staat. Ik ben erg tevreden en zal zeker weer bij hen winkelen!

    
      Review door **Karen**
    

  

  

    

      

        
        
        
        
        
      

      Excellent

    

    

Deze webshop is mijn favoriet! De website is gebruiksvriendelijk, het assortiment is indrukwekkend en de verzending is altijd op tijd. Ik ben een loyale klant geworden en heb geen reden om ergens anders te winkelen.

    
      Review door **Sophie**