Skip to content

[wpmlpb-857] divi/menu: capture rendered logo title/alt from decoration#534

Merged
dgwatkins merged 1 commit into
masterfrom
agent/wpmlpb-857
Jul 6, 2026
Merged

[wpmlpb-857] divi/menu: capture rendered logo title/alt from decoration#534
dgwatkins merged 1 commit into
masterfrom
agent/wpmlpb-857

Conversation

@dgwatkins

Copy link
Copy Markdown
Collaborator

Divi renders the menu logo title/alt from the module decoration attributes (targetElement="logo"), but the config only captured the non-rendered logo>innerContent alt/titleText copies - so translating them had no front-end effect. Add the module>decoration>attributes>* capture (as divi/image already has) and drop the dead logo>innerContent alt/titleText.

https://onthegosystems.myjetbrains.com/youtrack/issue/wpmlpb-857/

@dgwatkins dgwatkins requested a review from strategio July 6, 2026 12:14
@dgwatkins

dgwatkins commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

The attributes array is indexed based, I cannot target alt/title attributes directly, but its ok because:

  • There are no other attributes in divi/menu
  • Although I can't add it to the global namespace, because it would pull in attributes from other divi modules that aren't translatable.

@strategio strategio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Divi renders the menu logo title/alt from the module decoration
attributes (targetElement="logo"), but the config only captured the
non-rendered logo>innerContent alt/titleText copies - so translating
them had no front-end effect. Add the module>decoration>attributes>*
capture (as divi/image already has) and drop the dead
logo>innerContent alt/titleText.

Verified on the local site: the decoration title/alt now register as
translatable strings; the innerContent copies no longer do. String-based
(no wildcard-media dependency), ships with WPML 5.

https://onthegosystems.myjetbrains.com/youtrack/issue/wpmlpb-857/

Co-authored-by: Chai <david.gw@onthegosystems.com>
@dgwatkins dgwatkins merged commit 47fd504 into master Jul 6, 2026
1 check passed
@dgwatkins dgwatkins deleted the agent/wpmlpb-857 branch July 6, 2026 15:30
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

Successfully merging this pull request may close these issues.

2 participants