Site logo

Archived topic

wp-comments-post.php – how to change font-size via CSS?

1 reply · Started by john770 on October 12, 2017

Viewing posts 1–2 of 2

Hi guys,
When testing the comments form on blog pages and hitting the submit button without filling out all required fields, an error is shown on a wp-comments-post.php page reminding the user to fill out the missing fields.
The font-size there is too small for my needs but I haven't been able so far to change it via CSS.
The source code says


#error-page p {
	font-size: 14px;
	line-height: 1.5;
	margin: 25px 0 20px;
}

but I can't manage to overwrite that.
Even


#error-page p {
	font-size: 18px !important;
}

has no effect. Why that?
Thanks for any help!

You're likely seeing the standard WordPress error page. I'm not sure if it's possible to edit it, but it might be worth asking over on https://wordpress.stackexchange.com/

This archived topic is closed to new replies.