I did it by editing the file wp_render.php in /amp-supremacy/models
Go to line 109
You see $content = preg_replace(‘/(<[^>]+) ‘.$attribute.’=(“|\’).*?(“|\’)/i’, ‘$1’, $content);
Add the next line:
$content = preg_replace(‘/\[[^\]]*\]/’, ”, $content);
This line replaces everything between [ and ] and the brackets itself
Save it.. And the VC Shortcodes are gone.
Hope this helps you.
oops, that Killed my site 🙂 maybe I put it in wrong…
Hi @sehitlikturlari
Thanks for your interest in AMP Supremacy.
Well, the issue you are facing is evolving for many users because of VC’s incompatibility issues with AMP.
Thanks @quickliq, for sharing the solution but our development team came up with the similar solution but this washed of all the [user-content], even if the square brackets contains some non VC content.
This is why we didn’t rolled this in plugin. Team is working on getting a better solution to this.
Please add a support ticket issue at AMP Supremacy Support with anything else, our team will help you with it.
Thanks