Reply 338682 to: Why is the theme not working after server change?

Avatar: ByLegenS
ByLegenS
Participant
November 15, 2022 at 18:05

Hi, I fixed it with a temporary solution, changing the actions/global.php file of the amp plugin as follows.

if(isset($_GET[‘key’])) wp_redirect(add_query_arg(‘no-amp’, ‘1’, home_url( $wp->request ).’?’.http_build_query($_GET)));
else wp_redirect(add_query_arg(‘no-amp’, ‘1’, home_url( $wp->request )));

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.