I hope you are well today and thank you for your question.
To achieve this, you have to develop custom code in the child theme of the Jevelin theme.
Developing custom code for custom functionality is beyond the scope of support that we provide here. Please see https://themeforest.net/item/jevelin-multipurpose-premium-responsive-wordpress-theme/14728833/support
If you are not a developer then you can consider hiring a developer to develop it for you. You can hire a developer from any freelance site. Shufflehound recommends the developer https://www.upwork.com/freelancers/~011652ffec8865c6d5
just to clarify,
I am speaking about the type of image that is showing below the word Blog Post in this blog post and others
additionally, if the above is right, i should edit is this:
” alt=”” class=”width-full” />
i think you misunderstand me.
i added here screenshot of the image i would like to add a class to it.
now i did inspect on the image in chrome and got this:
img width=”640″ height=”675″ src=”https://saveatrain-12e85.kxcdn.com/blog/wp-content/uploads/2020/12/renata-kiss-q8NhIZ8iKQ-unsplash-640×675.jpg” class=”attachment-jevelin-landscape-large size-jevelin-landscape-large wp-post-image” alt=”woman positing at disneyland paris” loading=”lazy”
and in single.php, i did this:
img src=”<?php echo jevelin_get_small_thumb( $image[‘attachment_id’] ); ?>” alt=”” class=”width-full skip-lazy” /
and as you can see in the inspect there is no skip-lazy
so that means you told me to edit the wrong place
I didn’t tell you to edit the wrong place but it seems you don’t know how the WordPress template file system works.
The theme single.php file calls other files using the below code.
get_template_part( 'content', 'format-'.get_post_format() );
So you have to change it also in other files as shown in the attached screenshot.
the only place i could find IMG tags were content.php and content-gallery
so i added to their IMG CLASS skip-lazy
as was suggested in this article:
however examining the post page:
i can still see the feature image in the source code has loading=lazy and i don’t see anywhere in the code a class with skip-lazy
so i must be editing the wrong place, or i need to turn on and off the theme
can you advise please
If you don’t know how to edit the theme files or locate a specific code in the theme files then you can consider hiring a developer to develop it for you. You can hire a developer from any freelance site. Shufflehound recommends the developer https://www.upwork.com/freelancers/~011652ffec8865c6d5