WordPress.org

Ready to get started?Download WordPress

Forums

Need help Media Query calling different header (1 post)

  1. nrodger
    Member
    Posted 1 year ago #

    I am using a TwentyTwelve Child theme. The location of the wordpress site is http://www.kirstinleanne.com. I have altered the front-page.php template (Front Page Template) from :

    get_header();
    to
    get_header("home");

    This works great.

    I would like help with adding code to do this:

    If the device is max width 480px, then get the regular header.php instead of header-home.php

    I would like to know where to put the media query i.e. and code exactly.

    Thanks very much!

Topic Closed

This topic has been closed to new replies.

About this Topic