• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • Terraform
  • WordPress
  • Android
  • How to
  • About Me

How to Display ads only on Desktop browsers and not in Mobile Browser WordPress

August 18, 2017 by Gokul Deepak S Leave a Comment

How to Display ads only on Desktop browsers

In this post, I’m going to share you the method of How to Display ads only on Desktop browsers and not in Mobile Browser.

Mission: How to Display ads only on Desktop browsers and not in Mobile Browser

Requirements: WordPress

Step 1: Go to our admin panel. Appearance-> Widgets.

Step 2: Add Text widget.

Step 3: Paste this Code

 

<style>
@media (max-width: 1023px) {.hidead {display: none !important;}}</style>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<ins class="adsbygoogle hidead" style="display: block;" data-ad-client="ca-pub-123456789" data-ad-slot="01234567890" data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

 

Step 4: Change client id and ad slot id.

Mission Completed.

Filed Under: Wordpress

About Gokul Deepak S

Leave a ReplyCancel reply

0 Comments
Inline Feedbacks
View all comments

Primary Sidebar

Popular Pages

  • Home
  • How to find the date of the Facebook group it was created
  • How to install OwnCloud on Bluehost
  • Combine two separate files line by line in Notepad++
  • Terraform

Archives

Categories

  • Android
  • Apache
  • AWS
  • Blogger
  • Computer Tips
  • DevOps
  • Docker
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • Hosting
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Node JS
  • Notepad++
  • PostgresQL
  • Terraform
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One AWS Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS Notes OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2025 · Maintained by GokulDeepak

wpDiscuz