I’m trying to create my own WordPress theme just for a one page, secured form. This form looks as it should normally, as you can see in this screenshot –>
Unfortunately, even though I’ve included my own reset.css file, WordPress is inheriting styles from the theme’s style.css file. See here –>
As you can see, the font size is much smaller, input fields aren’t getting proper padding, the body background is supposed to be blue but is a grayish color in the second screenshot, fields aren’t getting proper margins etc.
I know everyone is going to be asking for code, but before I do that, I’m just wondering if there is a default css file you can delete or modify that most of these styles would be included on. I’m guessing this might be included in the admin bar that gives default margin to the top?
If I need to add code, please just let me know and I will. I’m just assuming there are some wordpress gurus out there who already know the answer to this question.
Thank you
Here are some options:
/wp-content/themes/YOUR-THEME/header.php
and remove any stylesheet includes./wp-content/themes/YOUR-THEME/functions.php
and remove anywp_enqueue_style()
wp_enqueue_style()
with a dependency on the offending stylesheet.You should be able to just delete the content below the theme info in the style.css file in wordpress and it will completely axe all of wordpress default styles.
https://codex.wordpress.org/Finding_Your_CSS_Styles