Error in slider revolution

Hello Ana,

For this you can verify with the following code:

// Disable autooptimize on all pages with the words “term1” or “term2” in the URL
add_filter(‘autoptimize_filter_noptimize’,’my_ao_noptimize’,10,0);
function my_ao_noptimize() {if ((strpos($_SERVER,’contact’)!==false) || if (strpos($_SERVER,’second page slug’)!==false))return true;
} else {
return false;
}
}

It’s a bit confusing but I’ll tell you a bit separating what you have to add for each new page:

|| if (strpos($_SERVER,’slug of each page’)!==false)

You insert this here:

right between the two )), for example if you had 3 urls it would look like this:

// Disable autooptimize on all pages with the words “term1” or “term2” in the URL
add_filter(‘autoptimize_filter_noptimize’,’my_ao_noptimize’,10,0);
function my_ao_noptimize() {if ((strpos($_SERVER,’contact’)!==false) || if (strpos($_SERVER,’second page slug’)!==false) || if (strpos( $_SERVER,’third page slug’)!==false))return true;
} else {
return false;
}
}

If you have any questions tell us,

Greetings 🖐️

Answered: 03/17/2021 3:33 pm

See also  How do I convert categories to tags without generating links...
Loading Facebook Comments ...
Loading Disqus Comments ...