Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In the “Additional CSS” section of the dashboard add this:

    
    @media screen and (max-width: 480px) {
        .has-header-image.twentyseventeen-front-page .site-branding, 
        .has-header-video.twentyseventeen-front-page .site-branding, 
        .has-header-image.home.blog .site-branding, 
        .has-header-video.home.blog .site-branding,
        .has-header-image.twentyseventeen-front-page .custom-header, 
        .has-header-video.twentyseventeen-front-page .custom-header, 
        .has-header-image.home.blog .custom-header, 
        .has-header-video.home.blog .custom-header {
            display: block;   
            height: auto;
            left: 0;
            max-width: 100%;
            min-height: 0;
            -o-object-fit: unset;
            object-fit: unset;
            position: relative;
            -ms-transform: none;
            -moz-transform: none;
            -webkit-transform: none;
            transform: none;
        }
    
        .has-header-image.twentyseventeen-front-page .site-branding, 
        .has-header-video.twentyseventeen-front-page .site-branding, 
        .has-header-image.home.blog .site-branding, 
        .has-header-video.home.blog .site-branding,
        .custom-header-media,
        .has-header-image .custom-header-media img, 
        .has-header-video .custom-header-media video, 
        .has-header-video .custom-header-media iframe {
            position: static;
        }
    
        .has-header-image .custom-header-media img, 
        .has-header-video .custom-header-media video, 
        .has-header-video .custom-header-media iframe, 
        .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img {
            min-height: 1px;
            -o-object-fit: unset;
            object-fit: unset;
        }
    
        .custom-header-media:before {
            background: none;
        }
    
        body.has-header-image .site-description, 
        body.has-header-video .site-description {
            color: #222;
            opacity: 1;
        }
    
        .site-branding .wrap {
            padding: 0 1em;
        }
    }
    
    @media screen and (max-width: 768px) {
        .custom-header-media,
        .has-header-image .custom-header-media img {
            display: block;
            position: static;
        }
    
        .has-header-image.home.blog .custom-header {
            height: auto;
        }
    
        .has-header-image.home.blog .site-branding {
            left: 0;
            position: absolute;
            top: 0;
        }
        
        .has-header-image.twentyseventeen-front-page .site-branding, 
        .has-header-video.twentyseventeen-front-page .site-branding, .has-header-image.home.blog .site-branding, 
        .has-header-video.home.blog .site-branding {
            display: block;
        }
    }
    

    https://codex.www.ads-software.com/CSS#Custom_CSS_in_WordPress

    Thread Starter gerrybushey

    (@gerrybushey)

    Hi Andrew. The sight title and tag line are working now. The image I have in the header isn’t though. I used 2000×1200. Should the image be a different size? Site is https://www.lauderdaleluxuryhomes.com
    Thanks
    Gerry

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    When I checked your Additional CSS area on your site, it wasn’t showing my code. Can you make sure you’ve copied all of the code I recommended.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header image resize on pad and iphone’ is closed to new replies.