Remove edit-post-visual-editor__post-title-wrapper
-
Hi again,
you’ve helped me a lot configuring my very simple family blog and I have found a few additional tips to refine the design.
I am almost done but I’d like to simplify one more aspect. Unfortunately I cannot provide a link to the page I need help with as it’s behind login and only accessible to registered “Author”.The last bit of simplification I am aiming for is the total removal of the Text input area for an author to give a title to his new post (class edit-post-visual-editor__post-title-wrapper).
I have found how to not display the title or the category (as I don’t have any) in post listing display page or in Archive/Category post listing display page.
I have found how to prevent Authors to add any block to their posts using “Disable Blocks” plugin
But since I expect a post to be limited to a photo with a Caption text below, I’d like to remove the “input title here” entire “block”I have searched the web intensively and even found a feature request to make title optional but I have not found any working solution.
I have found a code snippet like: add_filter( ‘generate_show_title’, ‘__return_false’ );
but contrary to simple CSS addition I’ve used, it does not work even in a simple plugin created with Pluginception.If it is problematic to completely remove the “title” attribute of a post because of it’s handling later on in the admin or dashboard, I would prefer it is auto-generated using something like the Author username concatenated with the creation datetime instead of offering the possibility for the Author to input anything.
Should I go all the way defining a child theme overriding post-new.php or there is a less overkill solution.
Regards
STephane
- The topic ‘Remove edit-post-visual-editor__post-title-wrapper’ is closed to new replies.