Problem with image redirects

Posted in: Newspaper
Post count: 75

Hi,
I run a test on my client’s website and I got a notification that I should minify redirects:

Remove the following redirect chain if possible:

http://marketpost.gr/wp-content/uploads/2017/09/marketpostgr-market-data-logo.png
https://marketpost.gr/wp-content/uploads/2017/09/marketpostgr-market-data-logo.png

I fixed one of them and I get another notification:
The following requests are returning 404/410 responses. Either fix the broken links, or remove the references to the non-existent resources.

http://marketpost.gr/wp-content/uploads/2017/07/footer_bg.jpg

Yes, the notification is right since in the code view I found that:
.td-footer-wrapper::before {
background-image: url(‘https://marketpost.gr/wp-content/uploads/2018/04/marketpost-footer-bg.jpg’);
}
td-menu-background,
.td-search-background {
background-image: url(‘http://marketpost.gr/wp-content/uploads/2017/07/footer_bg.jpg’);
}

.white-popup-block:before {
background-image: url(‘http://marketpost.gr/wp-content/uploads/2017/07/footer_bg.jpg’);
}

So, the theme uses HTTPS and HTTP for that same files in CSS.
Since I re-uploaded the footer background image, the HTTP verison is gone but CSS code is calling it.
How can I fix that?

Post count: 22421

Hello,

If you make the switch to https, then you will have to remove all of the images you previously added to the background or logo in the theme panel as they were saved as http when originally added. You must replace them with a https link.

Thanks

Post count: 75

Hi,
I have already changed the footer background URL image with HTTPS.
Unfortunately, this doesn’t change the protocol of the background image URL in .td-menu-background:before, .td-search-background:before and .white-popup-block:before classes. It is generated by the theme, in td_css_generator.php file ans, as a result, we get an none-found image:
.td-menu-background:before,
.td-search-background:before {
background: @mobile_gradient_one_mob;
background: -moz-linear-gradient(top, @mobile_gradient_one_mob 0%, @mobile_gradient_two_mob 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, @mobile_gradient_one_mob), color-stop(100%, @mobile_gradient_two_mob));
background: -webkit-linear-gradient(top, @mobile_gradient_one_mob 0%, @mobile_gradient_two_mob 100%);
background: -o-linear-gradient(top, @mobile_gradient_one_mob 0%, @mobileu_gradient_two_mob 100%);
background: -ms-linear-gradient(top, @mobile_gradient_one_mob 0%, @mobile_gradient_two_mob 100%);
background: linear-gradient(to bottom, @mobile_gradient_one_mob 0%, @mobile_gradient_two_mob 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’@mobile_gradient_one_mob’, endColorstr=’@mobile_gradient_two_mob’, GradientType=0 );
}

/* @login_background_image */
.white-popup-block:before {
background-image: url(‘@login_background_image’);
}

/* @login_background_repeat */
.white-popup-block:before {
background-repeat: @login_background_repeat;
}

/* @login_background_size */
.white-popup-block:before {
background-size: @login_background_size;
}

/* @login_background_position */
.white-popup-block:before {
background-position: @login_background_position;
}

/* @login_background_opacity */
.white-popup-block:before {
opacity: @login_background_opacity;
}

  • This reply was modified 8 years by lazdim.
Post count: 22421

Please contact us on our email address at contact@tagdiv.com and provide a link to your site and wp-admin (login information and admin rights) so we can login and investigate. Please also include a link to this conversation so we can identify you.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.