Archived topic
Is There A Way to Move the Featured Image Below the Second Paragraph On Mobile?
5 replies · Started by Susan on March 25, 2021
I'm working on Web Core Vitals and I keep getting an error on Google that my featured image on mobile it takes too long to load. My desktop scores are fine, it's just my mobile score that's giving me a headache.
I've recently moved the featured image below the second paragraph on Desktop, (thanks for helping me with this) But now I need to do it for mobile as well.
Is there a simple way to do this for mobile inside Generate Press? If not, can I do it through functions PHP? If so, can you share the code I'll need to put into my Functions file?
Looking forward to your response so I can finally get done with the Web Core Vitals and focus on other things.
Thanks
Susan
Hi Susan,
Unfortunately there isn't a built-in way to do this.
I took a look at the code you are using here:
https://generatepress.com/forums/topic/pushing-the-featured-image-down-past-the-second-paragraph/
And there isn't anything indicating that the code is desktop specific so I'm not sure why it doesn't work on the mobile screen.
Are you able to check with the code author?
That code isn't theme-specific so if it works in a Twenty series WP theme, it would work in GeneratePress.
I'm not sure how to check but when I look at my site on my iPhone, the featured image is showing up before the first paragraph underneath the title.
Where did you get the code from originally?
Does that code work correctly in a Twenty series WP theme?
I got it from the GP forum. Not sure if it works on the Twenty Series theme, I’m using GeneratePress.
Can you link us to the page in question?