Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Hi,
    I’m currently investigating your issue and I’ll come back to you as soon as I can
    I’ll keep you posted,
    Regards,

    Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Thank for your repporting @leinad4mind !

    We will fix that in next release, scheduled for December 11.

    If you want fix it now on your website, you can follow this instructions:

    Find the function weglot_amp_post_template_css() in file `weglot/src/third/amp/class-amp-enqueue-weglot.php’ and replace it with the new code.

    Old code:

    `
    public function weglot_amp_post_template_css() {
    echo file_get_contents( WEGLOT_DIR_DIST . ‘/css/front-amp-css.css’ ); //phpcs:ignore
    echo $this->option_services->get_flag_css(); //phpcs:ignore
    }
    `

    New code with fix:

    `
    public function weglot_amp_post_template_css() {
    $css = file_get_contents( WEGLOT_DIR_DIST . ‘/css/front-amp-css.css’ ); //phpcs:ignore
    $css = str_replace( ‘../images/’, plugins_url( WEGLOT_NAME ) . ‘/dist/images/’, $css );
    echo $css . $this->option_services->get_flag_css(); //phpcs:ignore
    }
    `

    Best regards,

    Plugin Contributor Julien MA Jacob

    (@wpr0ck)

    Resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Im having 404 on 2 images’ is closed to new replies.