Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    There is an invalid script being added to the body:

    <script async>window.memira = {"locale":"se","country":"se","version":"1.3.3","homeURL":"\/","ajaxURL":"\/wp-admin\/admin-ajax.php","apiURL":"\/wp-json","templateURL":"\/app\/themes\/memira","breakpoints":{"tablet":740,"desktop":1024},"onGoogleMapsInit":[],"thanksURL":"https:\/\/www.memira.se\/tack\/","isFrontPage":false,"cookiesURL":"https:\/\/www.memira.se\/kakor-cookies\/","cookiesNoticeText":"Memira anv\u00e4nder kakor f\u00f6r att f\u00f6rb\u00e4ttra upplevelsen p\u00e5 sajten.","cookiesLearnMore":"L\u00e4s mer om kakor.","customerCenter":{"phone":"020 - 61 62 00","email":"[email protected]"},"templates":{"clinics":{"url":"https:\/\/www.memira.se\/vara-kliniker\/"},"faqs":{"url":"https:\/\/www.memira.se\/vanliga-fragor\/"}},"recaptchaSiteKey":"6Lfe0ygTAAAAAOQgWdfrgpZUNHPdQl8PXUa1Iusr"}</script>

    I also see inline style attributes being added to templates. Likewise there are errors regarding role and tabindex attributes missing.

    There is also a missing amp-form extensions script. It can be added via:

    add_filter( 'amp_post_template_data', function( $data ) {
    	$data['amp_component_scripts'] = array_merge(
    		$data['amp_component_scripts'],
    		array(
    			'amp-form' => 'https://cdn.ampproject.org/v0/amp-form-latest.js',
    		)
    	);
    	return $data;
    } );

    There is also an invalid <script src="https://cdn.optimizely.com/js/1802500260.js"></script> in the footer.

    There are many errors on the page. I suggest looking at the validator and work through each of the issues reported: https://validator.ampproject.org/#url=https%3A%2F%2Fwww.memira.se%2Fboka-nu%2F%3Famp%3D1

Viewing 1 replies (of 1 total)
  • The topic ‘Convert tag img to amp-img automatically (need a script I guess))’ is closed to new replies.