Tagged: child, combine, CSS, performance
-
AuthorPosts
-
September 27, 2019 at 11:00 am #1142672
Hi,
From the last 2 versions I have a problem when installing the theme and activating child theme.
When I am starting to use my CSS in child theme and the performance settings combine CSS and JS on disable the CSS isn’t read correct.
The whole CSS doesn’t affect anything on the front-end. When set the combine CSS and JS on enable it does show up on the front-end??
Every time I change something in my child CSS I have to disable it -> refresh page -> enable it -> refresh page. Only then it works.
Are you familiar with this bug??September 27, 2019 at 12:42 pm #1142733Hey (Email address hidden if logged out) ,
Could you please attach some screenshots of the issue?
Best regards,
VictoriaSeptember 27, 2019 at 1:10 pm #1142744(1) https://ibb.co/Y8b2FHL -> This are my settings normally when developing, always works
(2) https://ibb.co/XtS38js -> This is how my site looks then (no style.css from child theme loaded)(3) https://ibb.co/nmCyB2v -> If I do my settings like this the style.css of my child theme is loaded
(4) https://ibb.co/KN8ShLB -> Front-end loaded with style.cssBut when merging is enabled (3) and I change something in style.css I need to disable the merging (1) and save.
Then refresh the front-end looks like (2). Then need to enable merging again (3) and refresh the front-end to get it right on the front-end (4).Pretty strange bug.
September 27, 2019 at 6:54 pm #1142887Hi (Email address hidden if logged out) ,
Yes, of course. When merging is enabled, the css changes and settings in the theme options do not get to the generated file with css until the theme options are saved again. And then the files are regenerated and are loaded on front-end, and even here browsers are caching the pages and so you need to reload a few times or do a ctrl+f5.
Does this make sense?
Best regards,
VictoriaOctober 4, 2019 at 9:57 am #1144923Hi,
I get what you say but if I set the performance settings on disable and save and refresh without caching it doesn’t have any effect.
That is just the whole problem.October 5, 2019 at 4:47 am #1145203Hi,
Thanks for the update. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardNovember 11, 2019 at 11:01 am #1155530Gave you a login in the private content. The performance setting is turned off but my CSS isn’t load on the front-end so hope you can fix this.
November 11, 2019 at 2:13 pm #1155612Hi,
Best regards,
VictoriaNovember 11, 2019 at 2:19 pm #1155616Hi,
Yeah it is another website but the same problem.
I have now inserted my css into the quick css to make it workNovember 12, 2019 at 6:54 pm #1156084Hi (Email address hidden if logged out) ,
It is very confusing. It is better to put your code in the Quick css and disable and enable merging, this way the code will go to the generated file dynamic_avia and will be applied on the website.
Best regards,
VictoriaNovember 12, 2019 at 7:08 pm #1156092Hi,
Yeah that is a solution but not the correct solution.
If I update my theme it will erase all the CSS. There has to be a solution for my child css.November 14, 2019 at 3:06 pm #1156816Hi,
The changes added to the style.css file or the Quick CSS field will not be included in the merged stylesheet while the Performance > File Compression settings are enabled. You have to toggle it, or turn it off and on again to regenerate the stylesheets and include the recent modifications. That’s how it works. What you can do is keep the settings disabled while you’re working on the site and enable it back once you’re completely done.
Thank you for understanding.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.