Skip to content

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

Open
@jonschr

Description

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions