简体   繁体   English

如何仅在移动设备上显示桌面版本 - Blogger

[英]How to only show desktop version on mobile - Blogger

I want to show only the desktop version of my blogger site forever... The whole desktop version/design will be shown.我想永远只显示我的博客站点的桌面版本...将显示整个桌面版本/设计。

Visit my site and request the Desktop Version if you are on mobile, and thats exactly want I want to show on!如果您使用移动设备,请访问我的网站并请求桌面版本,这正是我想要展示的! www.peleis.ml www.peleis.ml

This code is not working, its only change the m=1 to m=0 but not the design or view此代码不起作用,它仅将 m=1 更改为 m=0 而不是设计或视图

<code>
<script type='text/javascript'>//<![CDATA[
var curl = window.location.href;if (curl.indexOf('m=1') != -1) {curl = curl.replace('m=1', 'm=0');window.location.href = curl;}
//]]></script>
</code>

You may be able to force a desktop rendering by overriding the viewport width.您可以通过覆盖视口宽度来强制进行桌面渲染。 Try adding this meta tag to your <head> :尝试将此元标记添加到您的<head>

<meta name="viewport" content="width=1024" />

However, depending on your site's layout, that may negatively impact desktop viewing.但是,根据您网站的布局,这可能会对桌面查看产生负面影响。

截屏

Check if it is adding "?m=1" at the end of the URL it must be "?m=0" .检查它是否在 URL 末尾添加了"?m=1"它必须是"?m=0"

SOURCE: How to Redirect Mobile Version to Non-Mobile in Blogger来源: 如何在 Blogger 中将移动版本重定向到非移动版本

From your blog dashboard, Go to Theme > click on gear icon > select No. Show desktop theme on mobile devices.从您的博客仪表板,转到主题> 单击齿轮图标 > 选择否。在移动设备上显示桌面主题。

在此处输入图片说明

Hi... 你好

To be able to customize your Mobile Template, you need to set this to "Custom". 为了能够自定义您的移动模板,您需要将此设置为“自定义”。

Once you have finished so, Save your template then post back here for the next steps to add the mobile attribute. 完成此操作后,保存您的模板,然后在此处重新发布以进行添加移动属性的后续步骤。

Similar discussions on customizing Blogger Mobile Template was discussed here: https://support.google.com/blogger/thread/16829776?msgid=16936459 (adding the mobile='yes' attribute) or 8 best SEO friendly premium blogger templates . 在此处讨论了有关自定义Blogger移动模板的类似讨论: https : //support.google.com/blogger/thread/16829776?msgid = 16936459 (添加mobile ='yes'属性)或8种最佳的SEO友好高级博客模板

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在博主博客中帖子标题的下方显示一个adsense广告,使其甚至可以在移动版博主中使用? - How to show an adsense ad just below the post title in a blogger blog so that it works even on mobile version of blogger? 如何在Blogger的仅搜索页面中显示文本? - How to show a text in only search pages on Blogger? 如何在博客的主页上只显示帖子标题 - How to show only post title in homepage of blogger 从移动设备共享时,移动博客网站不会重定向到桌面 - Mobile blogger site not redirecting to desktop when shared from mobile 如何通过移动版本向网站的桌面版本发出 AJAX 请求 - How to make a AJAX request to a Desktop version of a site via the Mobile version 隐藏/显示元素不适用于移动/平板电脑,仅适用于桌面 - Hide/Show Elements not Working on Mobile/Tablet, only Desktop 在桌面上显示移动导航 - Show mobile nav on desktop 如何仅在桌面版上提高文本边距? - How to raise the margin of text only on desktop version? 将移动用户重定向到桌面版本 - Redirecting a mobile user to a desktop version 如何在中预览移动网站 <iframe> 在引导模式下站点的桌面版本中 - How to preview mobile site in <iframe> in desktop version of site in bootstrap modal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM