Skip to content

Stop media adding h2 tags to inserted images. #115

Description

@timdavison

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions