I searched and search the internet for information on how to style the comments error page, to no avail. What I did find was other people with the exact same question that I had. Having seen that, I thought I ought to post up my findings just so that in the future when a person like myself scours google for a wordpress answer, they can find it here.
Depending on how comfortable you are with wordpress and changing code, the comments error page, whether it be posting too quickly, duplicate comments, or not entering info, is located starting at 2742 of the functions.php file.
All I did was add my header.php file, sidebar.php files, wrap it all in my wrapper div, add the footer.php, end my divs etc, and viola. Now the error page is wrapped in the same css as the rest of the website, staying to design. And then you can target the stuff in the error page via #error-page.
Hope that helps someone.
The topic ‘Custom comments error page’ is closed to new replies.
(@mcjk)
13 years, 2 months ago
I searched and search the internet for information on how to style the comments error page, to no avail. What I did find was other people with the exact same question that I had. Having seen that, I thought I ought to post up my findings just so that in the future when a person like myself scours google for a wordpress answer, they can find it here.
Depending on how comfortable you are with wordpress and changing code, the comments error page, whether it be posting too quickly, duplicate comments, or not entering info, is located starting at 2742 of the functions.php file.
Here all you have is a rather empty page. Depending on how you customized your theme, you can do something like this:
All I did was add my header.php file, sidebar.php files, wrap it all in my wrapper div, add the footer.php, end my divs etc, and viola. Now the error page is wrapped in the same css as the rest of the website, staying to design. And then you can target the stuff in the error page via #error-page.
Hope that helps someone.