• Resolved LindsiKay

    (@lindsikay)


    When I view the pages on my website from a mobile device, it is showing the featured image at the top of the page, under the header but before the text (which I DON’T want). It is also showing the same image as a custom header (which I DO want). This is resulting in a double display of the same photo on each and every page of the website.

    An example can be seen at https://glutenfreesubstitutes.com/gluten-free-pizza-crusts/ (PLEASE VIEW FROM A SMARTPHONE to see the problem.)

    But this problem persists on all webpages.

    How do I “hide” the featured image on all mobile PAGES and posts. (Pages are my priority at the moment.) I still want the custom header to show…I just want to remove the double display of the same image.

    I would love a bit of CSS that I can use to hide this.

    Thanks!

    The page I need help with: [log in to see the link]

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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Looks like you resolved this

    Thread Starter LindsiKay

    (@lindsikay)

    No, I did not resolve this. Why would you say that? I could still use some help.

    Lindsi

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You have this Custom CSS which hides the featured image on desktop:

    
    
    @media screen and (min-width: 30em) {
    
        ...
    
        .single-featured-image-header {
            display: none;
        }
    }
    

    The “@media” bit means “Only apply this style when the screen is bigger than 30×16”.

    If you want to hide the featured image regardless of the screen size then take it out of the “@media” rule like so:

    
    
    @media screen and (min-width: 30em) {
    
        ...
    }
    
    .single-featured-image-header {
       display: none;
    }
    
    
    Thread Starter LindsiKay

    (@lindsikay)

    Ah, that’s what was tripping me up. Adjusted now. Thank you Andrew!

    Cheers,

    Lindsi

    Adrew,

    If I use the code above in Extra CSS, I get an alert / warning:

    Expect IDENT at line 3, col 6.

    and

    Expected RBRACE at line 4, col 2.

    The advice is not to save this code. Is it harmless?

    regards, Emil

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @emilseigen, That code is not for real use, it is example code that was specific to the person who opened this thread. If you need help with a similar issue, do open a new thread here: https://www.ads-software.com/support/theme/twentyseventeen/#new-post

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove featured image display on Mobile Device’ is closed to new replies.