WordPress.org

Ready to get started?Download WordPress

Ideas

Idea: Styling Password Protected Posts

  1. rcmatt4321
    Member

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

    Posted: 5 years ago #
  2. Justin Tadlock
    Member

    12345

    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.

    Posted: 5 years ago #
  3. mariostella
    Member

    12345

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

    Posted: 5 years ago #
  4. mikeque
    Member

    12345

    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.

    Posted: 5 years ago #
  5. mikeque
    Member

    12345

    this plugin seems to do the trick:
    http://wordpress.org/extend/plugins/protected-post-personalizer/

    Posted: 5 years ago #
  6. Justin Tadlock
    Member

    12345

    post_password_required() is a WordPress conditional tag. Use it to create styles specifically for password-protected posts.

    Posted: 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    3 Votes
  • Status

    This idea has been implemented