天天看點

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移動