Title: Responsive advertising and javascript on website
Last modified: July 2, 2020

---

# Responsive advertising and javascript on website

 *  Resolved [amit311kr](https://wordpress.org/support/users/amit311kr/)
 * (@amit311kr)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/responsive-advertising-and-javascript-on-website/)
 * Sir
    I want to put ads on my website which is in form of javascript codes. But
   I want to put separate ads for desktop and mobile. The company says to put ad
   code in body tag of website. I tried using wp_is _mobile() function in footer.
   php file just before closing of body tag but that didn’t work and I am seeing
   the desktop ad in mobile. Also I am using litespeed cache . Please help.

Viewing 1 replies (of 1 total)

 *  [Abhishek](https://wordpress.org/support/users/abhikr781/)
 * (@abhikr781)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/responsive-advertising-and-javascript-on-website/#post-13067732)
 * Hi,
 * You can copy the header.php file into the child theme and add the code after 
   the body tag. I don’t think it is oceanwp issue related query, you should consult
   with a developer to do this.

Viewing 1 replies (of 1 total)

The topic ‘Responsive advertising and javascript on website’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.5/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

## Tags

 * [body](https://wordpress.org/support/topic-tag/body/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [Abhishek](https://wordpress.org/support/users/abhikr781/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/responsive-advertising-and-javascript-on-website/#post-13067732)
 * Status: resolved