Archived topic
How to edit bottom header html?
9 replies · Started by Forum User on April 2, 2021
How can I edit my bottom header html?
https://www.tryhypnosisnow.com
Specifically <img width="1000" height="239" src="https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/NYC-Hypnotherapy-for-weight-loss-stop-smopking.jpg" data-lazy-type="image" data-src="https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/NYC-Hypnotherapy-for-weight-loss-stop-smopking.jpg" class="attachment-full size-full lazy-loaded" alt="Hypnosis in NYC for quit smoking weight loss anxiety phobias confidence and regression" loading="lazy" itemprop="image" srcset="https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/NYC-Hypnotherapy-for-weight-loss-stop-smopking.jpg 1000w, https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/NYC-Hypnotherapy-for-weight-loss-stop-smopking-300x72.jpg 300w, https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/NYC-Hypnotherapy-for-weight-loss-stop-smopking-768x184.jpg 768w, https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/NYC-Hypnotherapy-for-weight-loss-stop-smopking-500x120.jpg 500w" data-srcset="" sizes="(max-width: 1000px) 100vw, 1000px">
Hi there,
That's the featured image.
What are you trying to edit?
I am trying to prevent lazy loading for that specific image.
So are you trying to add a specific class to the featured image?
Right now, it looks like this:
class="lazy lazy-hidden attachment-full size-full"
I need to change it to this:
class="skip-lazy attachment-full size-full"
How are you adding lazy lazy-hidden? Those classes shouldn't be added by default.
Take a look at this:
https://generatepress.com/forums/topic/lcp-issue-featured-image-srcset-scaled-images/page/2/#post-1375075
I need direction as I need to block lazy loading on this image.
Have you tried adding the function I've linked above?
https://generatepress.com/forums/topic/how-to-edit-bottom-header-html/#post-1719369
Thank you for your help.
No problem :)