Title: Adding ads for mobile?
Last modified: August 21, 2016

---

# Adding ads for mobile?

 *  Resolved [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/)
 * Did you think in improving the plugin for mobile advertising?
 * I mean, for example to add ads in mobile’s footer.
 * Perhaps will be a good idea building in a new plugin.
 * Ciao!
 * [https://wordpress.org/plugins/adkingpro/](https://wordpress.org/plugins/adkingpro/)

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/adding-ads-for-mobile/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-ads-for-mobile/page/2/?output_format=md)

 *  Plugin Author [Ash Durham](https://wordpress.org/support/users/ashdurham/)
 * (@ashdurham)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775225)
 * Hi Prepu,
 * There isn’t anything stopping you from using AdKingPro for mobile advertising.
   AdKingPro gives you the ability to add and track adverts on your site, it does
   not modify or style how this is to look on your website. Technically speaking,
   responsive CSS should handle your adverts, not the plugin.
 * I’d be happy to give you guidance on this if you provide a link to where your
   advert isn’t working responsively.
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775264)
 * Hi Ash,
 * Sorry for the delay in my answer. I wasn’t talking if adkingpro is or not responsive.
   My idea is to make banner in the lower part of the mobile that is shown while
   I am read the webpage.
    You can have a look of what I was talking if you use 
   user mobile here: [http://www.elmundo.es](https://wordpress.org/support/topic/adding-ads-for-mobile/www.elmundo.es?output_format=md)
   I would be great if I can choose the height of the banner. I was also thinking
   how can I give some ads to my clients. Now I have the ads in my sidebar and the
   sidebar is hidden in mobiles and tablet.
 *  Plugin Author [Ash Durham](https://wordpress.org/support/users/ashdurham/)
 * (@ashdurham)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775265)
 * Hi,
 * However in actual fact, that could potentially be a form of responsiveness.
 * Once a screen size is below 767px (if you were to target handhelds under an iPad
   portrait size) you could have the container that has the advert in it fixed to
   the body of the page with 100% width. You could leave the height auto so that
   the banner will stay to scale. By doing this, your applying responsive CSS to
   your site.
 * Restricting banners to heights within the plugin and forcing them into positions
   is not what this plugin is about (nor will it ever be). AdKingPro gives its users
   the freedom to place its banners where ever they desire and to have them styled
   anyway they want it to be (keeping responsiveness at top of mind – setting dimensions
   prevents responsive coding from working correctly). By adding what your suggesting
   to the plugin is forcing the users to use their banners in a particular way. 
   To manage the height of a banner, upload the correct size you need (uploading
   an image bigger than it should/needs be is bad practice for load time).
 * The options you are referring to is rather particular (not everyone would want
   to have this) and is quite easily achieved with a few lines of CSS code (the 
   below is not tested).
 *     ```
       @media only screen and (max-width: 767px) {
           .adkingprobanner.sidebar {
               position: fixed;
               bottom: 0;
               left: 0;
               width: 100%;
               z-index: 1000;
           }
       }
       ```
   
 * I do hope that helps in displaying your adverts at all screen sizes.
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775311)
 * Hi and sorry for the delay.
 * I have tried adding the code you gave me in my style.css. The result si that 
   I have the banner fixed.
 * The problem is that I don’t want to use the same banner I have in my sidebar (
   now is 250px x 150px). My idea is to use a unique rectangle banner for the “footer”(
   perhaps 728x90px but it will adapt to the width of the mobile) and only for mobile
   or tablets. For example, if I see the page in a PC that banner will not see it.
 * That’s why I say it could be a different function or plugin.
 * Thank you for you time and help.
 *  Plugin Author [Ash Durham](https://wordpress.org/support/users/ashdurham/)
 * (@ashdurham)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775312)
 * Hi Prepu,
 * Again, what you require could be managed solely with CSS, allowing the functionality
   to work whenever you resize the window instead of relying on PHP headers or javascript
   browser information to display your adverts.
 * If you add two section containers (splitting it either with two advert types 
   or choosing the individual adverts), show one at desktop sizes (768px* and up)
   and show the other a mobile sizes. Note that this will give you an impression
   on both adverts and therefore will give you incorrectly stats of the percentage
   between impressions and clicks.
 * _*The minimum desktop size is completely up to you as it depends on the design
   and how you have it fold in as screen sizes get smaller._
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775313)
 * Ash, thank you for the information. I am not a programmer and that’s why I am
   asking (perhaps) silly things.
 * I will try to get information of how can I create a container just for mobile
   sizes and keep it sticky in the footer.
 * Thanks again.
 *  Plugin Author [Ash Durham](https://wordpress.org/support/users/ashdurham/)
 * (@ashdurham)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775314)
 * Hi Prepu,
 * No question is ever silly. All the best information comes from questions 😉
 * How are you currently adding the advert to your sidebar? With a widget? If so,
   if you do the following, you should get your desired result:
    1. Create a new advert type (eg. Mobile banners)
    2. Assign the banner you would like to this advert type
    3. Drag on a new widget underneath the already existing one
    4. On the new widget, select to use adverts in the new advert type
    5. Update your CSS that you copied above to the following:
    6.     ```
           .adkingprobanner.mobile-banners {
               display: none;
           }
           @media only screen and (max-width: 767px) {
               .adkingprobanner.sidebar {
                    display: none;
               }
               .adkingprobanner.mobile-banners {
                   display: block;
                   position: fixed;
                   bottom: 0;
                   left: 0;
                   width: 100%;
                   z-index: 1000;
               }
           }
           ```
       
 * The CSS is off the basis that you call your advert type “Mobile Banners”. Let
   me know if that does what you need 😉
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775315)
 * Hi Ash and thanks for your fast answer.
 * I have added that code in my style.css and it doesn’t work. I think there is 
   something in my theme that is overwritting that. Now, I have another banner in
   my sidebar but nothing when the screen is smaller.
    Here is the site I use to
   make tests: [http://188.165.218.80/test2/](http://188.165.218.80/test2/)
 *  Plugin Author [Ash Durham](https://wordpress.org/support/users/ashdurham/)
 * (@ashdurham)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775316)
 * Hi Prepu,
 * I can see that your mobile banner is still in the ‘sidebar’ advert type. I stated
   that you need to create a new advert type, assign your mobile banner to that 
   and output that advert type.
 * Have you done this?
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775317)
 * Yes, I have done everything you said. I’ve just had a look again and it is still
   not working. 🙁
 *  Plugin Author [Ash Durham](https://wordpress.org/support/users/ashdurham/)
 * (@ashdurham)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775319)
 * Hi Prepu,
 * Nothing has changed. I still see the mobile banner coming out as a “sidebar” 
   item. Are you using the banner id instead of the advert type?
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775321)
 * I have selected in “Appearance – Widgets” the Adkingpro widget and inside the
   advert type and below the ID ad. I don’t what else can I do…
 * I have also tried to add it as a banner inside a post to see if in a computer
   is not seen but it doesn’t work as well.
 * At last, I would like to make a suggesttion for a future update: In tab “How 
   to” it is not really clear of how to add the shortcode. I mean, instead of [adkingpro
   banner='{banner_id}’] I suggest [adkingpro banner=’banner_id’] without {}. It
   can make confusion an put the number inside of {999}.
 * I just want to improve it!
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775364)
 * Hi Ash, I know that you must be busy. I only want to let you know that the code
   you have gave me above doesn’t work as desire.
 * Do you have any other idea to make it work?
 * Thanks again.
 *  Plugin Author [Ash Durham](https://wordpress.org/support/users/ashdurham/)
 * (@ashdurham)
 * [12 years ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775366)
 * Hi Prepu,
 * It would appear that you have now removed the mobile menu as I can’t see it at
   all now. When I get a chance, I’ll set up a test scenario to show you how you
   would go about doing this with a bit of a tutorial on how to set it up.
 * I’ll keep you posted.
 *  Thread Starter [prepu](https://wordpress.org/support/users/prepu/)
 * (@prepu)
 * [12 years ago](https://wordpress.org/support/topic/adding-ads-for-mobile/#post-4775367)
 * Ash, thank you very much!!
 * Actually, the mobile banner is the second one on the sidebar (the one that is
   very rectangule).
 * I am looking foward to see your test scenario. 😉

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/adding-ads-for-mobile/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-ads-for-mobile/page/2/?output_format=md)

The topic ‘Adding ads for mobile?’ is closed to new replies.

 * ![](https://ps.w.org/adkingpro/assets/icon-256x256.png?rev=1060727)
 * [Ad King Pro](https://wordpress.org/plugins/adkingpro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adkingpro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adkingpro/)
 * [Active Topics](https://wordpress.org/support/plugin/adkingpro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adkingpro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adkingpro/reviews/)

 * 30 replies
 * 2 participants
 * Last reply from: [prepu](https://wordpress.org/support/users/prepu/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/adding-ads-for-mobile/page/2/#post-4775387)
 * Status: resolved