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

  • Hello,

    Please help, there is a space that make css syntax error. Tried disabled cache, minify, but no luck.

    CSS syntax error in tag 'style amp-custom' - bad url.

    Screenshot
    http://prntscr.com/mz48xw

    Version 0.9.97.43

    Thank you.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I found that’s related to Instagram embed. There are 20 posts error, all contain Instagram embed.

    Any solution?

    Hi,
    Try;

    /**
     * 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;
    }

    Hope it helps

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We are already aware of this bug, we are solving this in https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/2974 and we will be pushing an immediate update

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS syntax error in tag ‘style amp-custom’ – bad url.’ is closed to new replies.