Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14094

Frank Goossens on "Autoptimize conflicts with WP Beaver Builder"

$
0
0

ah, it's me who misunderstood actually; you want to be able to use Beaver builder yourself to add images, after which your visitors will see that image, but won't be able to add images themselves? something like that?

two options (as also explained earlier in this thread);
1. add ?ao_noptimize=1 to the URL of the page you're going to edit
2. exclude pages that have beaver builder active (i.e. for you, the administartor, not for visitors) from being optimized based on the presence of 'fl_builder' in the URL, using the API like this:

add_filter('autoptimize_filter_noptimize','beaver_noptimize',10,0);
function beaver_noptimize() {
	if (strpos($_SERVER['REQUEST_URI'],'fl_builder')!==false) {
		return true;
	} else {
		return false;
	}
}

frank


Viewing all articles
Browse latest Browse all 14094

Trending Articles