Skip Navigation

[Resolved] newly added css-code in CSS-editor of a View not working when using autoptimize

This thread is resolved. Here is a description of the problem and solution.

Problem:

Add css code in the CSS editor of an existing View with autoptimize plugin active, autoptimize is not picking up this code, if i place the code in the custom CSS editor of the childtheme it is working.

Solution:

Toolset Views plugin will output those CSS codes (css code in the CSS editor of an existing View) as inline CSS codes within HTML body tag.

According to that plugin description:

https://wordpress.org/plugins/autoptimize/

injects CSS in the page head by default (but can also defer), moves and defers scripts to the footer and minifies HTML.

It seems to be the autoptimize plugin can not pick up those inline CSS codes within HTML body tag, I suggest check if it is possible with autoptimize plugin author.

Relevant Documentation:

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by a.e.a.m.S 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1232688

I am trying to: add css code in the CSS editor of an existing View with autoptimize plugin active, autoptimize is not picking up this code, if i place the code in the custom CSS editor of the childtheme it is working.

Link to a page where the issue can be seen:

I expected to see: the new styling of the added css code.

Instead, I got: no change in the styling

#1233157

Hello,

Toolset Views plugin will output those CSS codes (css code in the CSS editor of an existing View) as inline CSS codes within HTML body tag.

According to that plugin description:
https://wordpress.org/plugins/autoptimize/
injects CSS in the page head by default (but can also defer), moves and defers scripts to the footer and minifies HTML.
It seems to be the autoptimize plugin can not pick up those inline CSS codes within HTML body tag, I suggest check if it is possible with autoptimize plugin author.

#1234168

Okay, thanks for your answer Luo, i will contact the autoptimize team.
Regards,