Mobile Detect module doesn't work
-
Greetings,
I love your plugin! Firstly, I’d like to thank you for your huge contribution to my website.
I’ve been experimenting with the mobile detect function in this page:
https://www.nusic.co.il/armin-van-buuren/Since it’s hebrew, I’ll let you know what I’ve been trying to achieve:
– I have a section with related news:
https://gyazo.com/bc45c1c4570513ae32cea2f1efcabf3a
– In Desktop, I wanted to loop 6 news items.
– In Mobile, I wanted to loop 3 news items.I’ll post my code below, hopefully it’ll make sense.
The only thing that I change in each loop is the “count” value.
I hope you can advise me on why it doesn’t work.
Many thanks Eliot!
<div class="post-related section-container clearfix"> <h2 class="section-title">????? ??? ????? ??????</h2> <div style="margin: 0 -15px;"> [is_computer][loop category="?????" tag="????? ??? ?????,armin-van-buuren" type="post" count="6" orderby="rand"][if not tag="exclude"] <div class="post-box-wrapper col-sm-4 col-md-4"><article>[field image-link size="vw_small"]</article> <div class="post-box-inner"> <h3 class="title">[field title-link]</h3> <div class="post-excerpt">[field excerpt]</div> </div> </div> [/if][/loop][/is_computer] [is_mobile][loop category="?????" tag="????? ??? ?????,armin-van-buuren" type="post" count="3" orderby="rand"][if not tag="exclude"] <div class="post-box-wrapper col-sm-4 col-md-4"><article>[field image-link size="vw_small"]</article> <div class="post-box-inner"> <h3 class="title">[field title-link]</h3> <div class="post-excerpt">[field excerpt]</div> </div> </div> [/if][/loop][/is_mobile] </div> </div>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Mobile Detect module doesn't work’ is closed to new replies.