Ecommerce Shopify WordPress Discussion

Slider in desktop mode and toggle in mobile mode

I would like to do the following: -add two destinations: Barcelona and Madrid in the same line (table with 2 columns 1 row ) that is responsible in mobile mode On desktop mode: -when I click one of the destinations, the tours list for that specific destination should be shown below the image, if I click on the second destination, should close the first destinations tours and show the second clicked destination tours below the image [image1] | [image2] (tours list 1 / tours list 2) On mobile mode: -the first list of tours (Barcelona) should appear between the two destinations, the second after the second destination [image1] (tours list 1) [image2] (tours list 2) How can I do that? The design also has some problems. Thanks $(function() { $('.showSingle').click(function() { $('.targetDiv').not('#div' + $(this).attr('target')).hide('slow'); $('#div' + $(this).attr('target')).toggle('slow'); }); }); .showSingle, targetDiv { padding-top:20px; padding-right:20px; padding-bottom:20px; } .showSingle img, targetDiv { border:5px solid white; } .nrtours_destinations { position:absolute; color:#333; background-color:white; font-size:1.2em; width: 70px; /*margin-left:auto; margin-right:auto;*/ margin-left:225px; padding-left:3px; top: 40px; } .barcelona_destinations, .madrid_destinations { position:absolute; color:#333; background-color:white; font-size:4em; width: 300px; margin-left:auto; margin-right:auto; top: 235px; text-align: center; padding-top:16px; height:60px; opacity:0.8; cursor:hand; } <script src=""></script> <div class="buttons"> <a class="showSingle" target="1"> <span class="barcelona_destinations">Barcelona</span><span class="nrtours_destinations">3 Tours</span><img src="" class="destination-img" alt="El Tour Más Completo de Barcelona" width="300px"> </a> <a class="showSingle" target="2"> <span class="madrid_destinations">Madrid</span><span class="nrtours_destinations">1 Tour</span><img src="" class="destination-img" alt="¡Madrid al Completo!(Con actores)" width="300px"> </a> </div> <span style="clear:both;"><span> <div id="div1" class="targetDiv" style="display:none;">Barcelona Tours</div> <div id="div2" class="targetDiv" style="display:none;">Madrid Tours</div> </div> Run code snippetExpand snippet
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.