Wordpress - Removing default styles

浪尽此生 提交于 2019-12-01 23:04:35

Here are some options:

  • Go to /wp-content/themes/YOUR-THEME/header.php and remove any stylesheet includes.
  • Go to /wp-content/themes/YOUR-THEME/functions.php and remove any wp_enqueue_style()
  • Make sure the style isn't generated by a plugin. If it is, you can deregister the style. Here is a link explaining how: http://speakinginbytes.com/2012/09/disable-plugins-css-file/
  • Overwrite the styles using your own stylesheet. Make sure your stylesheet comes LAST. You can do this a few ways - I'd recommend using 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!