Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Single Product Template Compatibility Layer: On the first block, the hooks are injected before the div wrapper #8701

Closed
Tracked by #8054
gigitux opened this issue Mar 9, 2023 · 0 comments · Fixed by #8702
Assignees
Labels
type: bug The issue/PR concerns a confirmed bug.

Comments

@gigitux
Copy link
Contributor

gigitux commented Mar 9, 2023

Describe the bug

On the first block, the hooks are injected before the div wrapper.

To reproduce

Steps to reproduce the behavior:

  1. Go to the Single Product Template.
  2. Edit the template via code and insert this markup via code editor
  3. Save.
  4. Be sure that the Single Product Template is visible correctly.
  5. Install the Code Snippets plugin.
  6. Create a new snippet and copy-paste this gist.
  7. Check that those hooks are put before the div wrapper:
  • woocommerce_before_single_product
  • woocommerce_before_single_product_summary
  • woocommerce_single_product_summary

Expected behavior

The hooks should inject after the div wrapper.

Screenshots

image

@gigitux gigitux added the type: bug The issue/PR concerns a confirmed bug. label Mar 9, 2023
@gigitux gigitux self-assigned this Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant