Home >CMS Tutorial >DEDECMS >How to close the mobile version of dedecms
dedecmsHow to close the mobile version?
Just delete the judgment and jump code in the template. The code here is to judge whether you are logging in with a mobile phone. If you log in, it will jump. Delete this code.
My purpose is to delete these two paragraphs in index.htm
<meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_mobileurl/}/index.php"> <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="{dede:global.cfg_mobileurl/}/index.php";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script>
dedecms introduction:
Dream Weaver Content Management System (DedeCms) is simple Famous for being practical and open source, it is the most well-known PHP open source website management system in China and the PHP CMS system with the most users. After years of development, the current version has excellent performance in terms of functionality and ease of use. After considerable development and progress, the main target users of the free version of DedeCms are locked at personal webmasters, and its functions are more focused on the construction of personal websites or small and medium-sized portals. Of course, there are also corporate users and schools using the system.
For more dedecms technical articles, please visit the dedecms usage tutorial column!
The above is the detailed content of How to close the mobile version of dedecms. For more information, please follow other related articles on the PHP Chinese website!