cmsdetectmobile
How to detect mobile using CBSplit CMS ?
How to add desktop specific code ?
{{#ifneq $request.isMobile 'true'}} <h1>This is desktop specific heading</h2> {{/ifneq}}
If you want to use if/else condition for mobile detect, you should use it like follow.
<div class="container"> {{#ifeq $request.isMobile 'true'}} How to add mobile specific code ? <div> <h1>This is mobile specific title</h1> </div> {{else}} How to add desktop specific code ? <div> <h1>This is desktop specific title</h1> </div> {{/ifeq}} </div>
cmsdetectmobile.txt ยท Last modified: 2024/09/18 18:05 by stephan