• sehitlikturlari

    (@sehitlikturlari)


    Hello,

    All of AMP Plugins except yours doesn’t work on my site. But this plugin doesn’t work with visual composer. It shows only the shortcodes.
    How can i fix it ?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Daniel

    (@quickliq)

    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.

    davidabc

    (@davidabc)

    oops, that Killed my site ?? maybe I put it in wrong…

    Plugin Author Supremacy Digital

    (@seosupremacy)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doesn’t work with Visual Composer’ is closed to new replies.