Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image alt tags are empty and causes issues. #1154

Closed
ahmedkaludi opened this issue Sep 26, 2017 · 0 comments
Closed

Image alt tags are empty and causes issues. #1154

ahmedkaludi opened this issue Sep 26, 2017 · 0 comments
Assignees
Milestone

Comments

@ahmedkaludi
Copy link
Owner

The images on my AMP-homepage are not visible. Due to the fact that the *.jpg and alt are merged and the image description is being handled as, i don’t know. The image description is in this case is 3 separate words replaced with ‘part_img_desc’

As you can see the code generates(attributes) =”” after each word and places alt straight behind *.jpg without closing the image.jpg with a ”

amp-img src=”https://www.website.com/wp-content/uploads/image.jpgalt” ==””
“part_img_desc=”” part_img_desc=”” part_img_desc”=”” width=”100″ height=”75″ class=”i-amphtml-element i-amphtml-layout-fixed i-amphtml-layout-size-defined i-amphtml-layout amp-notsupported” style=”width: 100px; height: 75px;”>

Is there a way to fix this within the code?

Resolved the attributes by disabling another plugin. But it didn’t resolve the issue from merging the jpgalt

I’ve edited the “features.php”at line 3361
from:
echo ‘alt = “‘. esc_attr($thumb_alt). ‘”‘;

into:
echo ‘ alt=”‘. esc_attr($thumb_alt). ‘”‘;

Could you please confirm that this is an little bug your side, else I have to dig deeper

REF: https://wordpress.org/support/topic/amp-img/

@ahmedkaludi ahmedkaludi added this to the 0.9.63 milestone Sep 26, 2017
pegazee added a commit that referenced this issue Sep 27, 2017
Image alt attribute on my AMP-homepage fixed #1154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants