Skip Navigation

[Resolved] Dynamic CSS & JS not working on Avada theme when Toolset Views is active.

This support ticket is created 6 years, 7 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

Author
Posts
#694938

I am trying to:
In the Avada theme there is an option under theme options advance that allows css and javascript to be dynamically created instead of in-line when selecting "CSS Compiling method"
Selecting "File" mode to compile the dynamic CSS to files in uploads/fusion-styles folder.

This works only when Toolset Views is deactivated.

I expected to see: All in-line CSS and in-line Javascript script and rules to be dynamically created within their respected folders.

Instead, I got: no folders created, so the CSS and javascript stain in-line.

#695594

Hello,

There isn't similar report, in case it is a compatibility problem of other plugins, please try this:
1) deactivate other plugins and switch to original Avada theme, and test again
2) If the problem still persists, please provide a copy of your website, also point out the problem page URL, where and How can I see the problem you mentioned above:
This works only when Toolset Views is deactivated
https://toolset.com/faq/provide-supporters-copy-site/

#712960

Thanks for the details, I am downloading the files, will feedback if there is anything found

#713018

Thanks for the details, The Views plugin disabled the Avada CSS Compiling method "file" mode on purpose:
See source code of Views plugin, file plugins\wp-views\vendor\toolset\toolset-theme-settings\compatibility-modules\themes\wpddl.layouts-avada-theme.class.php, line 9~15:

	/**
	 * Force Avada css mode to inline instead of file, this solves the problem with caching
	 */
    public function set_inline_css_mode(){
    	if( !defined('FUSION_DISABLE_COMPILERS') ){
		    define('FUSION_DISABLE_COMPILERS', true);
	    }
    }

So it is not recommended to use Avada CSS Compiling method "file" mode with View plugin, it will conduct some unexpected results.

#736250

What problems with caching are created with this option? Is there a fix other than disabling this option?

#739090

I have checked it in our to-do list, there is some compatibility problem between Avada CSS Compiling method "file" mode with Layouts plugin:
Avada theme options are not being read on the saved layout for pages/posts.

Since you are not using the Layouts plugin, if you insist on using "file" mode, you can add below line in your theme/functions.php

define('FUSION_DISABLE_COMPILERS', false);

And test again.

#890733

I can confirm the issue: running latest Avada theme and all Toolset plugins - with them activated I observe that following folders disappear from file system:
wp-content/uploads/fusion-styles (compiled CSS files)
wp-content/uploads/fusion-scripts (compiled JS files)

And also in Theme options (Avada > Theme Options > Advanced > Dynamic CSS & JS) I can see warning:
IMPORTANT NOTE: JS Compiler is disabled. File does not exist or access is restricted.

Now with plugins:
Toolset Views
Toolset WooCommerce Views
Toolset Layouts
deactivated Avada's CSS compilier works as expected.

Turning plugins back on again deletes mentioned folders from wp-content/uploads and compiliers stop working again.

#904943

@gytis, Thanks for sharing the workaround.

#904971

Well I can't say it's a workaround - I keep using both Views and Layouts plugins on my site therefore can't use Avada's CSS file generation... This somehow needs to be solved from Toolset plugins side.

#917896

I just want to chime in here with @gytis. I am also working with Avada and Toolset and am finding that site performance seems to be taking a hit because the "JS Compiler is disabled". Any chance there is an ETA on when this will be resolved?

Thanks,

Jeff

#948163

Any updates regarding this issue?

#1087074

Is following setting anyhow related?

Avada Fusion Compilers Options

Enable/disable Fusion Compilers to enhance front-end rendering performance. For Avada Settings edited with Toolset to take effect, Fusion Compilers must be disabled.

Enable Fusion Compilers

#1114524

I can confirm that having following setting in Avada:
Avada > Theme options > Advanced
CSS Compiling method: File
..and Toolset setting:
Toolset > Settings
(General) Enable Fusion Compilers
..solves the issue - CSS files are now generated and can be seen in source by element ID fusion-dynamic-css-css.

Thanks! 🙂