Support » Plugin: AMP for WP - Accelerated Mobile Pages » CSS syntax error in tag ‘style amp-custom’.

  • Hi there,

    I’m using the latest version of your plugin with the Design One theme.

    In my Google search console I’m getting the following error on 76 pages:

    CSS syntax error in tag ‘style amp-custom’

    I’ve linked one of the pages where the error is happening. It seems to be related to the ‘span.amp-wp-inline-f62a86b1328cd4134bec55ddf6de989a’ CSS class.

    Can you please advise?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Howdy,
    Had the same errors where it explodes on spaces in style urls show up and did this;

    /**
     * DAF: Fix validation error of base64 images in stylesheets.
     */
    add_filter( 'the_content', 'daf_fix_amp_space' );
    function daf_fix_amp_space( $content ) {
    	if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
    		return str_replace('data:image/png; base64,', 'data:image/png;base64,', $content);
    	}
    	return $content;
    }

    Modify the image/png if you have it fail on something else.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    This bug is already reported 3 days ago in the https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/2974

    As soon as we fix this, we will do an immediate update

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.