天天看点

wordpress移动_如何从桌面查看WordPress网站的移动版本

wordpress移动_如何从桌面查看WordPress网站的移动版本

wordpress移动

Do you want to preview the mobile version of your WordPress site? Previewing the mobile layout helps you see how your website looks on mobile devices.

您要预览WordPress网站的移动版本吗? 预览移动设备布局可帮助您查看网站在移动设备上的外观。

While you can certainly take a look at your live site on your phone, this doesn’t help during the development stage.

尽管您当然可以在手机上查看现场站点,但这在开发阶段没有帮助。

Even when your site is live, it’s often easier to view the mobile version on a desktop computer, so you can quickly make changes and see their effect.

即使您的网站是在线的,通常也更容易在台式计算机上查看移动版本,因此您可以快速进行更改并查看其效果。

In this article, we’ll show you two simple ways to easily preview the mobile layout of your WordPress site without switching to different devices.

在本文中,我们将向您展示两种简单的方法,可以轻松预览WordPress网站的移动布局,而无需切换到其他设备。

wordpress移动_如何从桌面查看WordPress网站的移动版本

为什么要预览手机版式 (Why You Should Preview Your Mobile Layout)

More than 50% of your website visitors will be using their mobile phones to access your site. Around 3% will be using a tablet.

您网站的访问者中有50%以上将使用手机访问您的网站。 大约3%的人将使用平板电脑。

This means that having a site that looks great on mobile is essential.

这意味着拥有一个在移动设备上看起来不错的网站至关重要。

In fact, mobile is so important that Google is now using a “mobile-first” index for their website ranking algorithm.

实际上,移动设备是如此重要,以至于Google现在为其网站排名算法使用“移动设备优先”索引 。

Even if you’re using a responsive WordPress theme, you still need to check how your site looks on mobile. You might even want to create different versions of key landing pages that are optimized for mobile users’ needs (more on this later).

即使您使用的是响应式WordPress主题 ,您仍然需要检查您的网站在移动设备上的外观。 您甚至可能想要创建不同版本的关键登录页面,这些版本针对移动用户的需求进行了优化(稍后会对此进行更多介绍)。

In this article, we’re going to cover two different methods of testing how your site looks on mobile using desktop browsers.

在本文中,我们将介绍两种不同的方法来测试您的网站使用桌面浏览器在移动设备上的外观。

It’s important to keep in mind that most mobile previews will not be completely perfect because there are so many different mobile screen sizes and browsers. Your final test should always be to look at your site on an actual mobile device.

重要的是要记住,大多数移动预览不会完全完美,因为移动屏幕尺寸和浏览器太多了。 最后的测试应该始终是在实际的移动设备上查看您的站点。

影片教学 (Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

1.使用WordPress的主题定制器 (1. Using WordPress’s Theme Customizer)

You can use the WordPress theme customizer to preview the mobile version of your WordPress site.

您可以使用WordPress主题定制器来预览WordPress网站的移动版本。

Simply login to your WordPress dashboard and go to Appearance » Customize screen.

只需登录到WordPress仪表板,然后转到外观»自定义屏幕。

wordpress移动_如何从桌面查看WordPress网站的移动版本

This will open up the WordPress theme customizer. Depending on what theme you’re using, you may see slightly different options in the left hand menu here:

这将打开WordPress主题定制器。 根据您使用的主题,您可能会在此处的左侧菜单中看到稍微不同的选项:

wordpress移动_如何从桌面查看WordPress网站的移动版本

At the bottom of the screen, click the mobile icon. You’ll then see a preview of how your site looks on mobile devices.

在屏幕底部,单击移动图标。 然后,您将预览网站在移动设备上的外观。

wordpress移动_如何从桌面查看WordPress网站的移动版本

Note: The blue editing symbols are only present in the previewer. You won’t see these on your live site.

注意:蓝色编辑符号仅出现在预览器中。 您不会在实时网站上看到这些内容。

This method of previewing the mobile version is particularly useful when you’ve not yet finished creating your blog, or when it’s under maintenance mode.

当您尚未完成创建博客或处于维护模式时,这种预览移动版本的方法特别有用。

You can make changes and check how they look before you put them live.

您可以进行更改并检查它们的外观,然后再将其投入使用。

2.使用Google Chrome的DevTools设备模式 (2. Using Google Chrome’s DevTools Device Mode)

Google Chrome browser has a set of developer tools that let you run various checks on any website, including seeing a preview of how your website looks on mobile devices.

Google Chrome浏览器具有一组开发人员工具,可让您在任何网站上进行各种检查,包括预览网站在移动设备上的外观。

Simply open the Google Chrome browser on your desktop and visit the page you want to check.

只需在桌面上打开Goog​​le Chrome浏览器,然后访问要检查的页面即可。

This could be the preview of a page on your site, or it could even be your competitors website.

这可能是您网站上页面的预览,甚至可能是您竞争对手的网站。

Next, you need to right-click on the page and select ‘Inspect’.

接下来,您需要右键单击该页面,然后选择“检查”。

wordpress移动_如何从桌面查看WordPress网站的移动版本

A new pane will open up on the right-hand side, like this:

右侧将打开一个新窗格,如下所示:

wordpress移动_如何从桌面查看WordPress网站的移动版本

In the developer view, you will be able to see your site’s HTML source code.

在开发人员视图中,您将能够看到站点HTML源代码。

Next, click the ‘Toggle Device Toolbar’ button to change to the mobile view.

接下来,点击“切换设备工具栏”按钮以更改为移动视图。

wordpress移动_如何从桌面查看WordPress网站的移动版本

You’ll notice the preview of your website will shrink to the mobile screen size.

您会注意到网站的预览将缩小到移动屏幕尺寸。

You’ll also notice your website’s appearance change to the mobile view. In the example above, the menu has collapsed and the Search icon has moved to the left instead of the right of the menu.

您还会注意到您网站的外观更改为移动视图。 在上面的示例中,菜单已折叠,并且“搜索”图标已移至菜单的左侧而不是右侧。

When you run your mouse cursor over the mobile view of your site, it’ll become a circle, like this:

当您将鼠标光标悬停在网站的移动视图上时,它将变成一个圆圈,如下所示:

wordpress移动_如何从桌面查看WordPress网站的移动版本

This circle can be moved with your mouse to mimic the touchscreen on a mobile device.

可以使用鼠标移动该圆圈,以模仿移动设备上的触摸屏。

You can also hold down the ‘Shift’ key, then click and move your mouse to simulate pinching the mobile screen to zoom in or out.

您还可以按住“ Shift”键,然后单击并移动鼠标以模拟捏住移动屏幕进行放大或缩小。

Above the mobile view of your site, you’ll see some additional options.

在网站的移动视图上方,您会看到一些其他选项。

wordpress移动_如何从桌面查看WordPress网站的移动版本

These let you do several extra things. You can check how your site would look on different types of smart phones. You can also simulate your site’s performance on fast or slow 3G connections. You can even rotate the mobile screen using the rotate icon.

这些使您可以做一些额外的事情。 您可以检查您的网站在不同类型的智能手机上的外观。 您还可以在快速或慢速3G连接上模拟站点的性能。 您甚至可以使用旋转图标旋转移动屏幕。

如何在WordPress中创建移动专用内容 (How to Create Mobile Specific Content in WordPress)

It’s important that your website has a responsive design, so your mobile visitors can easily navigate your website.

您的网站必须具有自适应设计,这一点很重要,以便您的移动访问者可以轻松浏览您的网站。

But simply having a responsive site may not go far enough. Users on mobile devices are often looking for different things than Desktop users.

但是仅仅拥有一个响应式站点可能还远远不够。 移动设备上的用户通常在寻找与台式机用户不同的东西。

Many premium themes and plugins let you create elements that display differently on desktop versus mobile. You can also use a page builder plugin like Beaver Builder to edit your landing pages in mobile view.

许多高级主题和插件可让您创建在台式机和移动设备上显示不同的元素。 您还可以使用Beaver Builder之类的页面构建器插件在移动视图中编辑目标页面。

You should definitely create mobile-specific content for your lead generation forms. On mobile devices, these should ask for minimal information, ideally just an email address. They should also look good and be easy to close.

您绝对应该为潜在客户生成表单创建移动专用的内容。 在移动设备上,这些设备要求的信息最少,最好是电子邮件地址。 它们还应该看起来不错并且易于关闭。

A great way to create mobile specific popups and lead-generation form is with OptinMonster. It is the most powerful WordPress popup plugin and lead generation tool in the market.

OptinMonster是创建移动设备专用弹出窗口和销售线索生成表格的绝佳方法 。 它是市场上功能最强大的WordPress弹出插件和销售线索生成工具。

They have specific device targeting display rules that let you show different campaigns to mobile users vs desktop users. You can even combine that with OptinMonster’s geo-targeting feature and other advanced personalization features to get the best conversion.

它们具有特定的设备定位显示规则,可让您向移动用户和桌面用户显示不同的广告系列 。 您甚至可以将其与OptinMonster的地理位置定位功能和其他高级个性化功能结合使用,以获得最佳转换。

We hope this article helped you learn how to preview the mobile layout of your site. You may also want to take a look at our article on the best plugins to convert a WordPress site into a mobile app.

我们希望本文能帮助您学习如何预览网站的移动布局。 您可能还需要阅读有关最佳插件的文章, 以将WordPress网站转换为移动应用程序 。

Bonus: check out our pick of the best business phone services, so you can add a click to call button for mobile users.

奖励:查看我们精选的最佳商务电话服务 ,以便为移动用户添加点击通话按钮 。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。

翻译自: https://www.wpbeginner.com/beginners-guide/how-to-preview-the-mobile-layout-of-your-site/

wordpress移动