Home › Forums › Support › Add two different ad scripts in Head – One for mobile and one for desktop? This topic has 1 reply, 2 voices, and was last updated 4 years, 4 months ago by David. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts November 22, 2019 at 3:02 am #1072094 Emil Hi! I need to add two different scripts for ads i the head of the website. The thing is that they both should not load at the same time. One is for desktop only and the other one is for mobile. It´s going to cause problems if both of them loads in the background at the same time. How can i do this? I have not set up the website yet so i can´t show you the specific site. November 22, 2019 at 6:04 am #1072323 DavidStaff Customer Support Hi there, its not completely bullet proof but you can use the wp_is_mobile() function to wrap your scripts https://developer.wordpress.org/reference/functions/wp_is_mobile/#user-contributed-notes Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In