-
Notifications
You must be signed in to change notification settings - Fork 219
inject hooks on the first block after the main div wrapper #8702
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
0c5b614
to
fc2dd50
Compare
Size Change: 0 B Total Size: 1.12 MB ℹ️ View Unchanged
|
hey @gigitux ! ref.:
Do you mind clarifying which markup is supposed to be inserted? The link is currently pointing to a local install. Thanks! |
Ops. I fixed the link! I created a GIF that shows how do this: Screen.Capture.on.2023-03-13.at.14-38-53.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the PR & it's working as expected 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the instructions: nice work!
Test results:
Go to the Single Product Template.
Edit the template via code and insert this markup via the code editor
Save.
Be sure that the Single Product Template is visible correctly.
✅ Confirmed the template is visible in the editor:
✅ Confirmed the template is also properly displayed on the FE:
Create a new snippet and copy-paste this gist.
Check that those hooks are put AFTER the div wrapper:
✅ Confirmed they are displayed after the wrapper div:
Thanks for the review, folks! @imanish003 I will merge this PR, if you have some doubts feel free to continue the discussion in this PR! |
During some tests, I noticed that the hooks on the first block are added before the
<div>
wrapper that we added to keep the compatibility with WC Core CSS.This PR fixes this wrong behavior.
Fixes #8701
Screenshots
Testing
User Facing Testing
WooCommerce Visibility