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

Stop media adding h2 tags to inserted images. #115

Open
timdavison opened this issue Jul 15, 2020 · 0 comments
Open

Stop media adding h2 tags to inserted images. #115

timdavison opened this issue Jul 15, 2020 · 0 comments
Assignees

Comments

@timdavison
Copy link
Contributor

When a media image is inserted in the wysiwyg editor, it gets themed using the file-entity template.

It therefore gets an h2 tag added which is visibly hidden. I have no idea why someone thought this was a desirable thing to do, but it is an accessibility fail, and also means the image will appear in the table of contents for that page.

Fix is to copy file-entity.tpl.php into the theme - rename it as file--image.tpl.php and remove the offending h2 tag.

@timdavison timdavison self-assigned this Jul 15, 2020
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

1 participant