Totally Zenned
- Join Date:
- Feb 2010
- Posts:
- 2,159
- Plugin Contributions:
- 10
Responsive DIY Template Default for v1.5.x
Look for this code:
<!-- ******************** EXAMPLE FOR 2.1b******************** -->
<!-- BOF: Per File, Device Type Javascript -->
<?php
/**
* 2.0 utilizes php-mobile-detect, allows us to use different Javascript for different devices.
[B] */ <-----REMOVE THIS[/B]
if ($detect->isMobile() && !$detect->isTablet() && (empty($_SESSION['display_mode'])) or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') { ?>
<script type="text/javascript">
document.write('This must be a Mobile phone!')
</script>
<?php } else if ($detect->isTablet() && (empty($_SESSION['display_mode'])) or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){ ?>
<script type="text/javascript">
document.write('This must be a Tablet!')
</script>
<?php } else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){ ?>
<script type="text/javascript">
document.write('This must be a Non-Responsive Desktop!')
</script>
<?php } else { ?>
<script type="text/javascript">
document.write('This must be a Desktop!')
</script>
<?php } [B] */ <-----ADD THIS[/B]?>
<br />
<!-- EOF: Per File, Device Type Javascript -->
<!-- ******************** EXAMPLE FOR 2.1b******************** -->
You can remove the "Site View" links by going to:
ADMIN > CONFIGURATION > CONFIGURE ZCA RESPONSIVE TEMPLATE SWITCH
and changing the configurations to "false" or
simply removing the "Link Text" will remove the links
Thanks,
ZCAdditions
rbarbour
marton_1:
Ah, probably my post was not clearly written :(
I reversed my changes so my page is no longer turned off :)
I just would like to stop displaying "This must be a Desktop!" at the top of the pages.
Example code would be nice :) :)Site is here www[.]simmar[.]ch/catalog
Thanks