close
Skip to content

Can't add URL to Social Icons Block when inserted in a Widget Group block #74062

@ciorici

Description

@ciorici

Description

When using a theme with widget areas, on the block-based widget screen, you can add a block called Widget Group.
Now, if you add a Social Icons block in this group, you can't click on each social icon to edit its URL, as the dropdown doesn't appear when clicking on an icon.
This happens only when a Social Icons block is a part of a Widget Group block.

Image

The issue happens with all themes.
If you click on an individual icon from the Social Icons block, the Widget Group is selected instead.

<!-- wp:widget-group -->
<h2 class="widget-title"></h2><div class="wp-widget-group__inner-blocks"><!-- wp:social-links -->
<ul class="wp-block-social-links"><!-- wp:social-link {"service":"wordpress"} /-->

<!-- wp:social-link {"service":"facebook"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:widget-group -->

The widget group block is not available in the editor in posts and pages, but I tried to manually copy it from the Widgets screen, and such an issue with social icons is not happening the post/page editor, only on the Widgets screen.

Step-by-step reproduction instructions

  1. Install a theme with widget areas. e.g. Twenty Twenty
  2. Go to Appearance > Widgets
  3. Add the Widget Group block to a widget area
  4. Add the Social Icons block in that widget group
  5. Add a Social Icon in the block, e.g., Facebook.
  6. Try clicking on the Facebook icon to add a URL.
  7. You will notice that it's impossible to click on the icon to see the flyout where you can enter the URL

Screenshots, screen recording, code snippet

Image Image Image

Environment info

WP 6.9, no plugins
PHP 8.3.28

Twenty Twenty theme
Chrome 143 on Mac Tahoe 26.2

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Block] SocialAffects the Social Block - used to display Social Media accounts[Feature] Widgets ScreenThe block-based screen that replaced widgets.php.[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions