- This topic has 13 replies, 4 voices, and was last updated 6 years, 5 months ago by
Leo.
-
AuthorPosts
-
November 2, 2019 at 6:54 am #1051221
Ruben
Hi
I am trying to use some css code in the footer widgets but it is not working due to autoptimize plugin. If I check the CSS options in the plugin then the code does not work.
It is strange, since in other site I have the same autoptimize settings and the same css code for footer widget and it works fine. This is the site that works: https://www.buentrading.com/
The site that does not work is this: https://www.apuestaspc.com/
When I put the CSS code in the customizer it shows well, like here: https://imgur.com/7IiNL5q
But when I update and go to the page itself it does not apply, like here: https://imgur.com/f13c2mRSo when I deactivate autoptimize css options the css works fine. I tried to add some files to the exclusion line as suggested by GP: “wp-content/cache/, wp-content/uploads/, admin-bar.min.css, dashicons.min.css”
I added “style.min.css” and “unsemantic-grid.min.css”, just trying but did not work.Do you have a hint of what it could be?
Thank you
November 2, 2019 at 8:56 am #1051426David
StaffCustomer SupportHi there,
can you clear and disable autoptimize so i can take a look ?
November 2, 2019 at 3:06 pm #1051596Ruben
Hi
I disabled autoptimize.
Now, the css inside the footer widget is working.
November 2, 2019 at 5:10 pm #1051630David
StaffCustomer SupportCan’t see what or why the CSS would get overwritten or discarded.
Can you re-enable autoptimizeNovember 3, 2019 at 4:20 am #1051827Ruben
Hi
I enabled it again. Now the css dissapears as before
No idea
November 3, 2019 at 5:38 am #1051874David
StaffCustomer SupportLooks like you disabled Autoptimize again – can you re-enable it.
November 3, 2019 at 6:09 am #1051887Ruben
Ok, Now it is disabled
November 3, 2019 at 9:41 am #1052155Tom
Lead DeveloperLead DeveloperHi there,
Can you activate Autoptimize again possibly?
What if you make your CSS more specific?
November 3, 2019 at 10:30 am #1052218Ruben
Hi Tom
I activated the autoptimize again. (css customization dissapears in footer widget) (css customization would reapear if I deactivate css options in autoptimize though)
What do you mean by CSS more specific?
I have this: `/* footer-widgets */
.inside-footer-widgets ul a{
color:#ffffff !important;
}#footer-widgets li:not(:last-child) {
border-bottom: 1px double #ffffff;
line-height: 2em;
margin-bottom: 0.6em;}
/*distancias en los widgets*/
.widget-title {
margin-bottom: 20px;
}.widget-title {
margin-top: 20px;
}
`November 3, 2019 at 10:33 am #1052222Leo
StaffCustomer SupportJust checked the site and the CSS is all working from what I can tell?
https://www.screencast.com/t/BPxVUAUBl6u9November 3, 2019 at 11:07 am #1052257Ruben
Not on my end. I do not see it. tried in chrome, firefox and incognito…and css not working with autoptimize on.
I cleared the cache and also my browser too
November 3, 2019 at 11:22 am #1052262Leo
StaffCustomer SupportSo what I’m seeing is the correct style?
That would be very strange.
Do you have another computer/device to test?
November 3, 2019 at 11:46 am #1052288Ruben
Yes you are seeing the right version
I tried in a Virtual Private Server and it does not work for me
I do not know..maybe just leave like this..
Will keep doing some tests to see
Thanks anyway
November 3, 2019 at 11:56 am #1052305Leo
StaffCustomer SupportWould be good if you can test it with another device.
If I can see the correct layout as the logged out user then it shouldn’t be an issue.
-
AuthorPosts
- You must be logged in to reply to this topic.