Wrong image focus on big grid sliders

Posted in: Newspaper
Post count: 37

Hi,
after 9.7 update image focus is totally messed up but only for some image types such as 741×486.
Can you help me please?

Post count: 22421

Hello,

Please provide more details to what you mean. Provide a link to your site and a screenshot so we can get a better idea of the issue you face.

Thank you!

Post count: 37

Hi Bogdan,
I’m referring to the weird crop focus I’m experiencing after 9.7 upgrade.
In short, before it was like this:
https://web.archive.org/web/20190122023354/https://italyze.me/

Now it’s this:
https://italyze.me/

So. Below 1200px (media queries?) is looking ok:
http://i67.tinypic.com/15me1bn.png

But as soon as I go beyond the threshold it goes messy:
http://i68.tinypic.com/11u9utc.png

I’ve disabled every plugin, cleaned caches (also rebooted apache), disabled Cloudflare and everything you could tell me to try before posting here.
Help?

Post count: 20688

Hi,

There is a blur on the images as you mention, but only on Chrome it seems. There was such an issue a while back, it happened after a Chrome update and I believe we made some modifications to fix it for sidebar sections where it happened most.

I get the same blur on the slide, using the same image as you – http://prntscr.com/ng6u0m
A quick fix is to add this code in the theme panel custom CSS section

.td-big-grid-slide {
perspective:unset!important;
}

Should fix the blur issue, I will also add this on our list to be fixed. Sorry for the inconvenience, and thank you for letting us know and providing these useful details.

Thanks

Post count: 37

Hi Simion,
thank you for your kind answer!
I’ve followed your advice to no avail since perspective:unset is already called in main.css but doing so I’ve found what’s the real problem.
It seems that td-composer is calling td_legacy_main.css which overrides main.css. I’ve tried to deregister and dequeue with this to no avail:


function dequeue_legacy_css() {
wp_dequeue_style('td_legacy_main');
wp_deregister_style('td_legacy_main');
}
//add_action('wp_enqueue_scripts','dequeue_my_css');
// add a priority if you need it
add_action('wp_enqueue_scripts','dequeue_my_css',100);

So now I’m making several manual overrides such as


.td-big-grid-post .td-module-thumb img {
max-width:100%!important;
}

I understand that you’ve got to implement the legacy files for those that have made heavy modifications to their themes but can you kindly implement a way to disable single legacy parts via theme panel (or functions.php) please?
Best,

– Luca

Post count: 37

Oh by the way. I’d like to help out reporting mistypes in style.css such as a typo in row 446 “auto/9;” on img. How can I do that?

Post count: 37

So now the full list of css mods is


.td-big-grid-post .td-module-thumb img {
max-width:100%!important;
}
.td_module_mx1 .td-module-thumb .entry-thumb {
max-width:100%!important;
}
img {
width:auto!important;
}

@media (min-width: 1019px) and (max-width: 1140px) {
.td-header-style-8 .td-header-sp-logo img {
width:80%!important;
}
}

@media (max-width: 767px) {
.td_block_image_box .td-image-box-row {
margin:0!important;
}
}

Post count: 37

Other couple quick fixes for post header image not working properly with different screen sizes

body .td-backstretch {
max-width:100%!important;
}
@media (min-width: 320px) and (max-width: 374px) {
body .td-backstretch {
max-width:190%!important;
}
}
@media (min-width: 375px) and (max-width: 410px) {
body .td-backstretch {
max-width:180%!important;
}
}
@media (min-width: 411px) and (max-width: 500px) {
body .td-backstretch {
max-width:150%!important;
}
}
.td-boxed-layout .td-container-wrap {
width:100%;
}

Post count: 20688

Seems not to work indeed, a stronger code is needed

.td-big-grid-slide.td_block_wrap {
perspective:unset!important;
}

I have tested it on my end, seems to work now. You could give it a try and then check the grid again.

I believe that the “/9” is meant for older versions of IE
https://stackoverflow.com/questions/8004765/css-9-in-width-property

At the moment I can’t say exactly what and how will change in future theme updates, regarding the legacy functionality. We will improve on the current state or make further modifications. Sorry for any inconvenience.

Let me know if you have more questions.

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