php - Changed my style.css file - Nothing happened -
i'm trying create wordpress theme , i'm coding on local server using xampp.
after 10 hours of pulling hair out trying fix errors figure out how theme uploaded, , changes make style.css file aren't being applied.
it uploads fine , tried changing php files , seemed work fine.
any suggestions?
ps. css code
* { margin: 0px; padding: 0px; font: 13px tahoma; } body,div,hgroup { display: block; } body { text-align: center; width: 100%; display: -webkit-box; -webkit-box-pack: center; background-color: blue; } #wrapper{ display: -webkit-box; margin-bottom: 15px; -webkit-box-flex: 1; -webkit-box-orient: vertical; border: 1px a2a2a2 solid; width: 90%; text-align: left; } #header { font: 65px tahoma; border: 2px #a2a2a2 solid; } #content { width: 75%; border: 2px #a2a2a2 solid; float: left; } #sidebar { width: 23%; border: 2px #a2a2a2 solid; float: right; } /*#delimiter { clear: both; }*/ #footer { border: 2px #a2a2a2 solid; } /*.title { font-size: 11pt; font-family: verdana; font-weight: bold; }*/
you answered own question in comments, stumbles upon this;
you should load wordpress stylesheets , js files "the wordpress way" noted in theme handbook
wordpress uses custom routing requires load stylesheets theme directory. rather trying use relative url /style.css
or style.css
follow guide linked above , use wp_enqueue_style()
function either get_stylesheet_uri();
or get_template_directory_uri();
locate file.
edit: note not 2 functions can used locate stylesheet. noted above can use get_bloginfo()
or bloginfo()
functions , pass 1 of many parameters accepts. read in codex.
Comments
Post a Comment