Skip to content

Body classes for "first" blocks are super helpful, and "last" block classes could be helpful too. #345

@jonschr

Description

@jonschr

This is my probably pretty clunky solution for outputting as body classes the alignment and name of the last block on the page.

https://gist.github.com/jonschr/f56701aebf858fb0733ebc0f49e8b478

Just wondered if you might implement something like this, since having body classes for the last block on the page/post/whatever can be quite helpful (for setting bottom padding on the content area, for example).

Metadata

Metadata

Assignees

No one assigned

    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