You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
portal-logo class missing on <img>-only header logo #1185
When a Picture uses the TACC template override logic that hoists instance.attributes_strto <a> or to <figure>, child templates cannot reliably add a separate class on <img> for the img-only case.
video.of.portal-logo.class.bug.issue.GH-1185.mov
State
Header logo1 needs portal-logo on <img>. Though Core-Stylessupports logo having link and not having link (i.e. <img>-only markup), Core-CMSfails to add class="portal-logo" to <img> when logo has no link (or no caption).
Linked header logos (default: home page link) are unaffected.
Cause
taccsite_cms/templates/djangocms_picture/default/picture.html hoists plugin attributes to the parent when link, caption, default caption, or child plugins exist. Otherwise attributes render on <img>. A second class="portal-logo" via picture_attributes_img duplicates class on <img> when attributes are not hoisted; browsers keep one value, so portal-logo is lost.
Reproduction
Header logo plugin with portal_logo picture template.
changed the title [-]Picture attribute hoisting: portal-logo missing on img-only header logo[/-][+]`portal-logo` class missing on `<img>`-only header logo[/+]on Jun 18, 2026
Activity
docs(GH-999): document img-only header logo CMS limitation
wesleyboar commentedon Jun 18, 2026
Draft Fix
Warning
This fix has since been overwritten by simpler code that restores the bug.
[-]Picture attribute hoisting: portal-logo missing on img-only header logo[/-][+]`portal-logo` class missing on `<img>`-only header logo[/+]Merge branch 'fix/GH-1185-header-logo-portal-logo-class' of github.co…