我必须改变我的wordpress外观。侧边栏应放在左侧。我已经在寻找解决方案,但我发现的代码不适合我的。我不知道在哪里我必须改变它。我知道我可以在选项中更改它,但我需要在CSS样式表中更改它。谢谢你的帮助!
二十一/二十一。44:样式表(style.css)
body {
padding: 0 2em;
}
#page {
margin: 2em auto;
max-width: 1000px;
}
#branding hgroup {
margin: 0 7.6%;
}
#access div {
margin: 0 7.6%;
}
#primary {
float: left;
margin: 0 -26.4% 0 0;
width: 100%;
}
#content {
margin: 0 34% 0 7.6%;
width: 58.4%;
}
#secondary {
float: right;
margin-right: 7.6%;
width: 18.8%;
}
/* Singular */
.singular #primary {
margin: 0;
}
.singular #content,
.left-sidebar.singular #content {
margin: 0 7.6%;
position: relative;
width: auto;
}
.singular .entry-header,
.singular .entry-content,
.singular footer.entry-meta,
.singular #comments-title {
margin: 0 auto;
width: 68.9%;
}
/* Attachments */
.singular .image-attachment .entry-content {
margin: 0 auto;
width: auto;
}
.singular .image-attachment .entry-description {
margin: 0 auto;
width: 68.9%;
}
/* Showcase */
.page-template-showcase-php #primary,
.left-sidebar.page-template-showcase-php #primary {
margin: 0;
}
.page-template-showcase-php #content,
.left-sidebar.page-template-showcase-php #content {
margin: 0 7.6%;
width: auto;
}
.page-template-showcase-php section.recent-posts {
float: right;
margin: 0 0 0 31%;
width: 69%;
}
.page-template-showcase-php #main .widget-area {
float: left;
margin: 0 -22.15% 0 0;
width: 22.15%;
}
/* error404 */
.error404 #primary {
float: none;
margin: 0;
}
.error404 #primary #content {
margin: 0 7.6%;
width: auto;
}
/* Alignment */
.alignleft {
display: inline;
float: left;
margin-right: 1.625em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.625em;
}
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
/* Right Content */
.left-sidebar #primary {
float: left;
margin: 0 0 0 -26.4%;
width: 100%;
}
.left-sidebar #content {
margin: 0 7.6% 0 34%;
width: 58.4%;
}
.left-sidebar #secondary {
float: right;
margin-left: 7.6%;
margin-right: 0;
width: 18.8%;
}