Homepage › Forum › Product Support › BeStruct › Change or remove href link before lazy load fires
Tagged: Lazy Load
- This topic has 8 replies, 2 voices, and was last updated 5 years, 3 months ago by
Jackie.
-
AuthorPosts
-
5 years, 3 months ago #22722
I did not find this question either on the forum or in the documentation.
Sample code
Before loading an image by Lazy Load href, we need an empty one or with our image. Where does it change? Or where in the code can this be edited?
Now:
src="data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20607%20470%22%3E%3C/svg%3E"
Need to:
src=""
5 years, 3 months ago #22723The code was overwritten ... this is what it was:
< img class="lazyload vc_single_image-img " src="data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20607%20470%22%3E%3C/svg%3E" data-src="https://proremdom.ru/wp-content/uploads/2020/08/who-we-are2.jpg" width="607" height="470" alt="who-we-are2" title="who-we-are2">
5 years, 3 months ago #22729Hi.
Thank you for contacting us.
Sorry, I'm not sure about that question. Can you explain more details about that, if yes, please give us some link or image about that? We will help you check the issue soon.
Thanks.
5 years, 3 months ago #22747The site with the problem: https://proremdom.ru
On the main page we see: http://joxi.ru/vAWNZQWcOqnle2
Due to this code (it does not refer to the file we need and to http, not https), we do not pass the https protection check. http://joxi.ru/LmGdDkgtlJ8ng2 "The connection to the site is not fully secured"
5 years, 3 months ago #22748LazyLoad did not connect their own. This works yours, from the theme.
5 years, 3 months ago #22754In theory, I only need the place or path to the file where the condition for the formation of such a scr is located.
5 years, 3 months ago #22767Hi again.
We have checked and found the issue from the image loading on the your home page.
Mixed Content: The page at 'https://proremdom.ru/' was loaded over HTTPS, but requested an insecure image 'http://proremdom.ru/wp-content/uploads/2020/07/index_head.png'. This content should also be served over HTTPS.
The issue from the CSS below:
.index-head {- min-height: 0px !important;
- height: 740px;
- background-image: url(http://proremdom.ru/wp-content/uploads/2020/07/index_head.png);
}If you have added the CSS to your site, please check it again.Thanks.5 years, 3 months ago #22771Thank you so much.
Main issue resolved.
But what if we want to change the LazyLoad image? Let's say we want to show our logo if the main image does not have time to load?
At the moment, this is no longer a problem, but a question.
5 years, 3 months ago #22786Hi again.
If you want to custom the single image shortcode, you can change the source code at file:
wp-content/plugins/js_composer/include/templates/shortcodes/vc_single_image.php
Please check it again.
Thanks.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.
