Title: @media query mod through custom css
Last modified: August 21, 2016

---

# @media query mod through custom css

 *  [utmedical](https://wordpress.org/support/users/utmedical/)
 * (@utmedical)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/media-query-mod-through-custom-css/)
 * I’d like to modify my title to be smaller on mobile devices since ~50% of my 
   traffic is mobile. ([ultrasoundoftheweek.com](http://www.ultrasoundoftheweek.com))
   My title is slightly to big and wraps to two lines. I’d rather do this with custom
   CSS rather than editing the theme itself. Here is what I’ve tried:
 *     ```
       @media screen and (max-width: 782px) {
          .h1 .entry-title{
                font-size:1.25em !important;
            }
       }
       ```
   
 * But, no bueno. Any one have thoughts?

Viewing 1 replies (of 1 total)

 *  [Scott Smith](https://wordpress.org/support/users/scottsmith/)
 * (@scottsmith)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/media-query-mod-through-custom-css/#post-5091704)
 * It’s currently working for me, but the code snippet you posted has one problem,
   there shouldn’t be a space (child selector) between `.h1` and `.entry-title`,
   nor is h1 a class, so the period can be removed. Give this a go:
 *     ```
       @media screen and (max-width: 782px) {
          .site-title{
                font-size: 1.25em;
            }
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘@media query mod through custom css’ is closed to new replies.

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

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [media query](https://wordpress.org/support/topic-tag/media-query/)

 * 1 reply
 * 2 participants
 * Last reply from: [Scott Smith](https://wordpress.org/support/users/scottsmith/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/media-query-mod-through-custom-css/#post-5091704)
 * Status: not resolved