block editor – How to know whether you are editing a page or a post?


I have different styles applied to pages (I hide the title for them) and posts (I don’t want to hide the title here, but style the date of the post). I want to style them differently, which ist possible on the site itself. But in the editor I don’t seem to have the possibility to distinguish between pages and posts.

There is no css-class in an upper element which indicates whether I am editing a page or a post which I could use in my css.

How can i know what I am editing in the editor – a page or a post. It’s driving me crazy – there must be a way to know this.

Mathias Bader 6 months 2021-06-07T08:18:58-05:00 0 Answers 0 views 0

Leave an answer