Home>Support>Use media queries in child theme

Use media queries in child theme

By euroscience, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

Dear SiteOrigin support,

I am using your Vantage theme, that I really enjoy so far. Thank you for your good work !
In order to customize it, I created a child theme of the non-premium version.

I am trying to resize the tagline depending on the screen width and I am having trouble so far.

I included the “viewport” meta in the header via functions.php:

// Add viewport meta tag to head
function viewport_meta() { 
    ?>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <?php
}
add_filter('wp_head', 'viewport_meta');

and I also added the following line at the end of style.css:

@media (max-width: 1080px) {header#masthead .hgroup .support-text{
font-size:400%;}}
@media (max-width: 680px) {header#masthead .hgroup .support-text{
font-size:300%;}}
@media (max-width: 480px) {header#masthead .hgroup .support-text{
font-size:200%;}}

Unfortunately, I am using the website on a private work environement and therefore can’t give you a URL (well, the URL is www.euroscience.org but you would see the not-wordpress current version if you don’t update your hostfiles).

URL: http://www.euroscience.org

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 10 months ago euroscience

    Dear support,

    I managed to find a way to make it work.

  2. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad to hear you made progress here, thanks for the update.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More