Skip Navigation

[Resolved] Avada Conflict with Latest version of Views

This support ticket is created 3 years, 11 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by kristofG 3 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1893943

Avada Theme style not loading when views is active.

#1894021
#1894041

I was wrong, the View is indeed currently in use on hidden link

#1894099

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristof,

I'm still going through this one for you.

So far I can say there isn't a direct conflict between Toolset Views and Avada because on a fresh install both work fine and all the styling loads.

Perhaps you can setup a fresh install on your end and see if you can replicate the issue as well. However i'm still investigating for you.

Thanks,
Shane

#1894117

what do you mean with a fresh install? from scratch or from the duplicator package?

#1894333

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristof,

What I did was to install your theme and views only on a clean install to check if its actually a conflict between the two.

Currently they work fine together and the frontend displays fine when views is activated so I would like for you to setup a brand new site with just the theme and views only.

Thanks,
Shane

#1894817

Hi Shane, as it is currently a very busy time, we manage about 100 clients as a web agency, I won't be able to quickly set up a brand new site. However, I have just created a staging site with the WP Staging plugin and disabled all but the Toolset Views plugin. I notice that the layout is also broken on hidden link with the Avada Theme but it is rather ok with the Twenty Twenty One theme.

Any idea how to find out what the issue is between Avada and Toolset Views? It seems when I set the CSS Compiling Method
in the Avada Options to Database or Disabled (instead of File), the site loads fine, even with Views activated. However, File works fine, when I disable Views.

#1895291

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristof,

I believe I found the css that is not loading or that is being blocked from loading, its the "fusion-dynamic-css-css" not being loaded.

What I've done is to escalate this ticket to our 2nd tier supporters so they can have a look to see if they can find anything that i've missed.

I'll report to you once i've gotten any updates from them.

Thanks,
Shane

#1896265

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristof,

Thank you for the continued patience.

Our 2nd tier supporters were able to have a look at this one for you and were able to provide a workaround on this.

To resolve this issue go to Avada -> Options -> Performance and under "Dynamic CSS & JS" select Database for the CSS Compiling Method and save the setting.

Refresh your webpage and see if the issue still remains, if it does set the Dynamic CSS & JS settings for CSS Compiling Method to Turn Off and then hit save.

Please let me know if this works for you.

Thanks,
Shane

#1896539

Hi Shane,
as you can read in my previous reply, I also found that workaround.
But as this is a workaround, I am looking forward to a final solution.

#1896605

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kristof,

Thank you, it seems that from our 2nd tier supporters investigation, our views plugin disable dynamic css as there is a line in our views for it.

/**
	 * Force Avada css mode to inline instead of file, this solves the problem with caching
	 */
	private function set_inline_css_mode() {
		if ( ! defined( 'FUSION_DISABLE_COMPILERS' ) ) {
			define( 'FUSION_DISABLE_COMPILERS', apply_filters( 'toolset_disable_fusion_compilers', $this->is_disable_compilers() ) );
		}
	}

Another solution that was suggested was to use the hook below.

add_filter( 'toolset_disable_fusion_compilers', '__return_false' );

Add the above to your functions.php file and it should resolve the issue as it disables the function in our plugin that would disable the dynamic css.

Please let me know if this helps.
Thanks,
Shane

#1897001

My issue is resolved now. Thank you!
But why would you need to hook into the Avada CSS compilation in the first place? I find it strange that a plugin needs to alter a feature for a specific Theme.