[Resolved] Child theme enqueue mobile style

Home Forums Support [Resolved] Child theme enqueue mobile style

Home Forums Support Child theme enqueue mobile style

  • This topic has 1 reply, 2 voices, and was last updated 9 years ago by Tom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #87102
    Jean Paiva
    Developer

    Hey Tom,

    how is the best way to enqueue the mobile max screen width into a child theme?

    Thank you

    #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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.