Reply To: Child theme enqueue mobile style

Home Forums Support Child theme enqueue mobile style Reply To: Child theme enqueue mobile style

Home Forums Support Child theme enqueue mobile style Reply To: Child theme enqueue mobile style

#87153
Tom
Lead Developer
Lead Developer

You can simply add your CSS inside a media query like this:

@media screen and (max-width: 768px) {
      /* mobile CSS in here */
}

If you want to enqueue a file just for mobile, take a look in 1.2.9’s functions.php file for the enqueue code for the mobile stylesheet – you’ll see the media query in there.