• Summary:
    ========
    How can I make a user error-ing (pressing submit on a comment when not typed anything in) see a pretty (styled) page?

    Detail:
    ========
    Sorry if this is an age-old question.

    I cannot find an answer here or on the web.

    I am cheerfully assuming that given the powerful level of support given to theme development and encouragement that there must be a clean way to add style (theme) so a user who presses ‘Submit’ (in error) when they have not yet typed in anything at the comment form won’t see the entirely raw/un-styled wp-comments-post.php output.

    I get a scary, un-styled page that looks entirely unlike the theme I am developing. I tried this on a couple of other themes and got the same result.

    Thanks in advance, anyone who knows…

Viewing 2 replies - 1 through 2 (of 2 total)
  • I, like you, couldn’t find anything to do with this anywhere on the web, and it’s such a fundamental thing you’d think it’d be built right into WP.. oh well, maybe next time.

    Ok, if you want to go digging round in your core WP code, you need to edit /wp-includes/functions.php between lines 1216 and 1248 ( a function called wp_die() )

    Just edit the core html it outputs, I just changed the title and the logo but you can obviously go crazy if you want. Hope this helps!

    Thread Starter alanfluff

    (@alanfluff)

    Hey, thanks – yep it does help ??

    Weird this faux pas in styling support to have existed for so long. I’m sure there are bigger fish to fry in terms of WP dev effort and it’ll get done when it gets done – I can’t complain – I love WP ??

    I’ll keep watching this space though to see when it gets some WP dev love*.

    *[No criticism of WP dev time – I know it’s finite and stuff like this can’t be a priority].

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘(howto) Styling wp-comments-post (again?)’ is closed to new replies.