4.3.5 Full CSS Changes Break Single Event Layout
-
I updated to 4.3.5 and my single event layout was all messed up as a result. I saw another thread regarding a similar issue.
I am using the Full Styles option on my site and I compared the tribe-events-full.css files from versions 4.3.5 and 4.3.1.1. I found three instances where the CSS went from targeting featured images in list view to targeting all featured images. For instance, line 615 in 4.3.1.1 was:
.tribe-events-list .tribe-events-event-image { display: inline-block; float: left; margin: 0 3% 0 0; }
However, that line is now line 610 in 4.3.5 and it has been changed to:
.tribe-events-event-image { display: inline-block; float: left; margin: 0 3% 0 0; }
This means that all featured images are now affected by this code rather than just the images appearing in list view.
I managed to fix the single-event layout on my site by adding the following to my theme’s CSS file:
.single-tribe_events .tribe-events-event-image { float: none; display: block; margin-right: 0; } .single-tribe_events .tribe-events-event-image img { width: auto; } .single-tribe_events .tribe-events-event-image + div.tribe-events-content { float: none; position: static; width: auto; }
However, I am wondering why the change (removing .tribe-events-list) was made at all. And can it be reverted to the way it was? I noticed the same change was not made to the mobile full CSS file.
- The topic ‘4.3.5 Full CSS Changes Break Single Event Layout’ is closed to new replies.