Tagged: 4.5.7
-
AuthorPosts
-
July 16, 2019 at 8:09 pm #1119287
Hi guys,
I was hoping there would be a patch to 4.5.7 but I have not seen it. I have updated the Staging site but not the Live site as it would imply me re-designing every mobile page CSS. Definitely not what I want to do. Please, help!
Check out the home page of both the Staging: https://staging-ligadejusticia.kinsta.cloud/ and the Live sites https://ligadejusticia.com on e smartphone. Notice how the Red section that says 30 años de experiencia, etc does not render in the exact same way as on the Live Site (where it renders correctly) The heading size should be 3vw when rendered on mobile. Changing it to a fixed pixel value only increases the CSS files, would need me to do cross browser testing and re-design the site – check page by page. Definitely there has to be a different solution.
Thank you!!
Havi
July 17, 2019 at 6:19 am #1119406Hey havi,
Are you referring to the header in the red section a bit down the page? If so then I can’t see any difference on the two pages you linked to, could you post screenshots of the issue please?
Best regards,
RikardJuly 18, 2019 at 12:34 am #1119745Hi Rikard!
Yes. That’s the one. Adding the images right here.
July 18, 2019 at 2:00 pm #1119918Hi,
Thanks for that, this is the CSS applying to those headers:
@media only screen and (max-width: 767px) { #top #wrap_all .av-inherit-size .av-special-heading-tag { font-size: 0.8em; } }
Could you try overriding that CSS with a higher value to see if that helps?
Best regards,
RikardJuly 18, 2019 at 2:14 pm #1119923Hi Rikard,
I don’t have that code as custom CSS. That’s Enfold’s standard code. I believe it must not be recognizing that the original size is 3vw and probably should not be reduced as it’s already defined by the viewport width.
Personally, I think that’s a better move for responsive than setting up fixed numbers of pixels. There are too many screen sizes out there.
It worked perfectly before as you can see on the Live site. Can you check what changed on those lines of code? I am afraid that changing that CSS may badly affect other parts of the website.
I can also give you access to the staging site. Just let me know.
I’ll be happy to help.
Best,
Havi
July 18, 2019 at 2:25 pm #1119927I edited the value to 3em and it changes all of the headings throughout the whole site and not in a good way.
But the CSS code on the Live site does not use em but:
@media only screen and (max-width: 767px) and (min-width: 480px)
.responsive #top #wrap_all .av-small-font-size-27 {
font-size: 27px !important;
}Maybe the custom CSS you mark as !important lost that and does not get to override the .8em code.
Hope this helps fins the solution.
Havi
July 19, 2019 at 5:44 am #1120059Hi Havi,
You can override it with pixels values as well, you might have to use !important for it apply like you mentioned. This class is not default to the theme though: .av-small-font-size-27. Is that a custom class of yours? If so then please check that it exists on your dev site as well.
Best regards,
RikardJuly 19, 2019 at 5:19 pm #1120280Hi Rikard,
Both Custom CSS matches. You can see, that code is default to the theme. Here it is:
/* page sidebar navigation on mobile */
@media only screen and (max-width: 767px) {
.responsive #top .avia-post-nav {
display: block !important;
}}/*breadcrumbs*/
.title_container { background-color: #dc0012;!important; }/* Sticky header on Mobile */
@media only screen and (max-width: 767px) {
#header {
position:fixed !important;
top: 0;
}.responsive #top #main {
padding-top:80px !important;
}
}/*stop flickering on load more */
.avia_loading_icon {
display: none !important;
}As you can see, that code is not mine, it’s the theme’s. The size 3vw comes as an option by default on Enfold for sizing. Therefore, it is default to the theme.
Manually overriding with pixels every single instance where this happens (besides having to investigate what the value should be for every image size) should not be what I have to do when I use a premium theme that offers responsive design. It could be several pages and on the home page, this happens at least, 4 times. This is the reason I put the ticket. It worked before, now it doesn’t.
Manually adding CSS code (that bloats the page) and that will not look as good as it does now is not the option I am looking for. I could have done that myself. Again, this worked before, and on Enfold 4.5.7, it doesn’t.
Quoting ne of the many articles on the topic:
What’s the Advantage of Using Viewport Units?
Simply put, by implementing viewport units correctly, you can create a fluid responsive effect that is quite different from a simple adaptive website. A responsive design will automatically adjust its size as your viewport changes, whereas an adaptive design will correct itself once your viewport reaches a specific size, thanks to the use of media queries.
The advantage is obvious from an aesthetic standpoint – a fluid design simply looks better. Additionally, using viewports over fixed units poses the additional advantage of being easier to implement and maintain. Implementing an adaptive design will, in most cases, require the addition of multiple media queries, with specific values that must be pixel perfect.
What’s more, using viewport units enables you to easily design your text to always remain at a comfortable line length, then have that experience scale upwards or downwards as your resolution adjusts.
Best,
Havi
July 25, 2019 at 10:02 pm #1121979Hi,
The problem is that you do not want to use pixels over the CSS?
Best regards,
BasilisJuly 25, 2019 at 10:21 pm #1121982No, the problem is that you offer a choice of viewport css – that I already used on the design and was extremely happy with – and for some reason stopped being responsive. So, as it worked before, it should work now, Something must be off.
If you do not support this css option anymore, you shouldn’t allow it to be selected. And all of us who have used it, need to know so we don’t have strange looking websites.
And that’s what I want taken care of.
Best regards,
Havi
July 27, 2019 at 4:55 pm #1122360Hi Havi,
The breakpoints remain the same and the css works as it did before. In most cases, responsiveness breaks due to customizations added overriding the theme css and using !important.
Other than that we help with all other adjustments.
Best regards,
VictoriaJuly 29, 2019 at 3:24 pm #1122767Hi Victoria,
There were no modifications made to the code since the earlier releases. And this is standard code. Can you please show me where the custom code is coming from? (I shared all the CSS with you earlier. and here are a couple of screenshots showing you the Enfold CSS options chosen.
Thank you.
Havi
July 29, 2019 at 8:16 pm #1122894Hi Havi,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJuly 29, 2019 at 8:39 pm #1122911Of course!!
I have even
This seems to be missing after av-special-heading-tag: av-small-font-size-overwrite av-small-font-size-27 av-mini-font-size-overwrite av-mini-font-size-27
Compared with the Chrome console.
Even copy pasted on the Chrome console and that fixed it.
I disabled minification of CSS and Javascript (even though the staging environment is not cached) to help find what may be missing and from where…
Let me know if I can help in any way…
Thank you!!
Havi
July 31, 2019 at 4:32 am #1123385Hi,
Thank you for the update.
You have to set or specify the font size for each screen sizes in the element’s Screen Options > Heading Font Size. Those options are not set in the staging version.
Best regards,
IsmaelAugust 1, 2019 at 12:26 am #1123683Hi Ismael!
I just saw that… that’s weird.. it’s a copy from the Live site but with the updated version.
So glad the problem was identified… thank you so much!! I’ll make sure to check that these values still exist after the update and nothing went wrong.
Are you planning on making vw available for mobile in the future? It would eliminate the need to manually override these values and it would adapt to every screen size (portrait or landscape), browser, you name it that’s out there. It would become truly adaptive design (and you already have many features that allow us to hide elements on one or the other screen, my conversion agency clients are extremely happy about these features)
Thank you again!
Best regards,
Havi
August 1, 2019 at 11:59 am #1123868 -
AuthorPosts
- You must be logged in to reply to this topic.