Skip to content

Image: add_theme_support for wide and full alignments #1724

Closed

Description

@jasmussen

The new alignment toolbar adds two more options for image, wide and full:

screen shot 2017-07-05 at 13 51 31

An image block with the wide option applied gets the CSS classes alignwide wp-block-image, while an image with the full option applied gets alignfull wp-block-image. But the theme itself may not have the required CSS styles to support these, and it's difficult for the block itself to provide these styles inline, as they require some architecting of the theme itself, in order to work well.

We should let themes opt in to these buttons by delaring something like add_theme_support( 'wide-images' );, and the buttons should be hidden unless the theme has opted in.

Activity

  1. added
    [Type] Enhancement
    on Jul 5, 2017
  2. added this to the Beta 0.8.0 milestone on Jul 5, 2017
  3. modified the milestones: Beta 0.7.0, Beta 0.8.0 on Jul 6, 2017
  4. davidakennedy commented on Jul 12, 2017

    @davidakennedy

    This makes sense to me. It's along the lines of what we talked about in a group discussion among the Theme Team at Automattic.

  5. self-assigned this
    on Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions