• Resolved abitofmind

    (@abitofmind)


    Reproduction: Assign a custom anchor (element ID) to a Greenshift block via Inspector → Advanced → Anchor → Custom Anchor.

    Expected HTML output: The respective HTML element for the Greenshift block (e.g. h3.gspb_heading for an Advanced Heading or div.gspb_container for a Container block) gets the HTML attribute ID set to your custom anchor.

    Actual HTML output: Greenshift creates an empty DIV with your custom ID before the respective Greenshift block you have assigned it to. This is useless for CSS/JS selection. I guess it is a bug.

    Environment: Greenshift 6.5.2, WordPress 6.3, Gutenberg 16.4.0

    Screenshots:

    • This topic was modified 1 year, 3 months ago by abitofmind.
Viewing 1 replies (of 1 total)
  • Plugin Author wpsoul

    (@wpsoul)

    It’s correct, section of block has static auto generated unque ID. Id can be only one in layer, so custom anchor is added to separate div

Viewing 1 replies (of 1 total)
  • The topic ‘Bug: Custom anchor ID for Greenshift block rendered in empty DIV block before it’ is closed to new replies.