Skip to content

Fix Learning Mode admin CSS path for Divi theme#8034

Open
thisismyurl wants to merge 1 commit into
Automattic:trunkfrom
thisismyurl:fix/7863-divi-learning-mode-css-path
Open

Fix Learning Mode admin CSS path for Divi theme#8034
thisismyurl wants to merge 1 commit into
Automattic:trunkfrom
thisismyurl:fix/7863-divi-learning-mode-css-path

Conversation

@thisismyurl

Copy link
Copy Markdown
Contributor

Closes #7863.

The Learning Mode admin stylesheet for the Divi theme was enqueued from css/3rd-party/themes/div/learning-mode.css — a directory that doesn't exist (the i is missing), so Learning Mode styles fail to load in the lesson editor and site editor with Divi active. The front-end enqueue and the Divi editor stylesheet already use the correct divi/ directory, which is why only the admin editor view was affected.

Fix

One-character path correction: div/divi/ in sensei_admin_load_learning_mode_style_for_divi_theme().

Testing

The change only corrects an asset path (no unit-testable state). Verified css/3rd-party/themes/divi/learning-mode.css is the path the front-end enqueue and the Divi editor stylesheet already reference, and that no other div/ reference remains.

Changelog entry added (Significance: patch, Type: fixed).

Props @thisismyurl.

(full disclosure: AI helped me identify the issue and verify my work)

The admin editor enqueue pointed at css/3rd-party/themes/div/learning-mode.css
(missing the 'i'), so the Learning Mode stylesheet failed to load in the lesson
and site editors for the Divi theme. The front-end enqueue and the editor
stylesheet already use the correct 'divi/' directory.

Closes Automattic#7863
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.

learning-mode.css link is incorrect

1 participant