Idea: Styling Password Protected Posts
As a theme developer, it seems hard to style a simple form that WordPress gives me when the post is password protected. I can't seem to find anything on this topic.
With the post title tag, I should be able to select what text gets prepended to the Title when password protected.
I think it would be nice to either A) Able to code exactly how the form is displayed, or B) There should be some handles (ex. IDs Classes) on the form itself, the label, the textbox and the submit button.
This would be friggin awesome if this was implemented, I could go hard code it into the file that this functionality lies in, but when distributing a theme, I don't want people to have to edit their WordPress install...
As a theme developer, I can say this is easy to do. There's no need for additional functionality within WP. All that's needed is the appropriate classes added by the theme.
Greenshady, how would you do that altering just your theme's CSS without altering the core file? If you get a way, kudos to you. Otherwise...
I am with you. If there were a class tag wrapping the form, or better yet on each form element it would be a cinch to format.
The build of WordPress ought to include more clasd and id tags on elements like this to facilitize theming.
I don't want to edit the core code, and it seems like a lot of work to build a custom function to do this. I'll post an answer here when I come across it.
post_password_required() is a WordPress conditional tag. Use it to create styles specifically for password-protected posts.
RSS feed for this topic
This topic has been closed to new replies.