【问题标题】:Disallow website to be viewed on Smartphone and Tablets and also block View as Desktop option in tablet browserDisallow website to be viewed on Smartphone and Tablets and also block View as Desktop option in tablet browser
【发布时间】:2022-12-27 16:48:27
【问题描述】:

Disallow my Wrodpress website to be viewed on Smartphone and Tablets and also block View as Desktop option in tablet browser! How this can be done?

【问题讨论】:

    标签: wordpress


    【解决方案1】:

    To disallow a WordPress website from being viewed on smartphones and tablets, you can use a plugin like "WP Mobile Detect." This plugin allows you to redirect mobile users to a different URL or display a custom message. Here's how you can use it:

    Install and activate the WP Mobile Detect plugin. Go to Settings > WP Mobile Detect. In the "Redirection" section, select "Yes" for the "Redirect mobile visitors?" option. In the "Mobile URL" field, enter the URL where you want mobile users to be redirected. You can use a different URL for tablets and smartphones, or you can use the same URL for both. Click "Save Changes." To block the "View as Desktop" option in tablet browsers, you can use a plugin like "Mobile Detect." This plugin allows you to detect the type of device being used and customize the website accordingly. Here's how you can use it:

    Install and activate the Mobile Detect plugin. Go to Settings > Mobile Detect. In the "Tablet" section, select "Yes" for the "Block View as Desktop option?" option. Click "Save Changes." This will block the "View as Desktop" option in tablet browsers, preventing users from accessing the website as if they were on a desktop computer.

    It's important to note that these solutions may not be foolproof, as users may still be able to access the website through other means (such as using a different device or browser). Additionally, blocking access to the website on certain devices may not be the best solution for all websites and may negatively impact the user experience for some users. Consider the specific needs and goals of your website before implementing these changes.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-02
      • 2022-12-27
      • 2022-12-02
      • 2022-12-02
      • 2022-12-27
      • 2022-12-26
      • 1970-01-01
      • 2012-12-08
      相关资源
      最近更新 更多