Wyśrodkowanie wpisów na całą stronę
-
Dobry wieczór wszystkim 🙂
Siedze od 4h i męczę się jak to 'ugryźć’ żeby usunąć sideboxa po prawej stronie a wpisy wyśrodkować na całą stronę, tak mniej więcej od lewej do prawej tego menu rozowego.
Link do bloga: http://kociaksiezniczka.zz.mu/
pozdrawiam
-
Witam
Usuń z pliku index.php następujący kod :
<?php get_sidebar(); ?>czyli przed ostatnią linię kodu.
Następnie otwórz plik style.css i tam zmień kod w dwóch miejscach. Odszukaj :Screen between 681px and 1024pxi zmień w nim kod :
.section {float: left; width: 60%; margin: 20px 0;}
na :
.section {float: left; width: 100%; margin: 20px 0;}to samo zrób poniżej przy sekcji kodu :
Screen larger than 1025pxNie ma za co.
Pozdrawiam 🙂Niestety tego:
Screen between 681px and 1024px
i
Screen larger than 1025p
nie ma w style.css :(, skopiować cały css tutaj ?
ale chyba poradziłem sobie 🙂 w
/* Minimum width of 680 pixels. */
zmieniłem width: 60%; na 100 i bangla 🙂
Wrzuć zawartość pliku css ze swojego szablonu.
/* Theme Name: Adelle – WordPress.com Theme URI: http://theme.wordpress.com/themes/adelle/ Description: With a chic white and black design accented with soft pinks and greys, Adelle brings sophistication and elegance to any blog. Version: 1.0.1 Author: BluChic Author URI: http://bluchic.com/ License: GPL v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html */ /* =Reset -------------------------------------------------------------- */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { border: 0; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0; padding: 0; vertical-align: baseline; } html { font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */ overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */ -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */ -ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */ } body { background: #fff; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } ol, ul { list-style: none; } table { /* tables still need 'cellspacing="0"' in the markup */ border-collapse: separate; border-spacing: 0; } caption, th, td { font-weight: normal; text-align: left; } blockquote:before, blockquote:after, q:before, q:after { content: ""; } blockquote, q { quotes: "" ""; } a:focus { outline: thin dotted; } a:hover, a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */ outline: 0; } a img { border: 0; } /* =Global ----------------------------------------------- */ body, button, input, select, textarea { color: #666; font-family: 'Muli', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Tahoma, Arial, sans-serif; font-size: 16px; font-size: 1.6rem; line-height: 1.5; } .site-container { background: url( 'images/background.png' ) repeat-x center top; overflow: hidden; } /* Headings */ h1,h2,h3,h4,h5,h6 { clear: both; font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; } hr { background-color: #ddd; border: 0; height: 1px; margin-bottom: 1.5em; } /* Text elements */ p { margin-bottom: 1.5em; } ul, ol { margin: 0 0 1.5em 3em; } ul { list-style: disc; } ol { list-style: decimal; } li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; } dt { font-weight: bold; } dd { margin: 0 1.5em 1.5em; } b, strong { font-weight: bold; } dfn, cite, em, i { font-style: italic; } blockquote { margin: 0 1.5em; } address { margin: 0 0 1.5em; } pre { background: #eee; font-family: "Courier 10 Pitch", Courier, monospace; font-size: 13px; font-size: 1.3rem; line-height: inherit; margin-bottom: 1.6em; padding: 1.6em; overflow: auto; max-width: 100%; } code, kbd, tt, var { font: 12px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; } abbr, acronym { border-bottom: 1px dotted #666; cursor: help; } mark, ins { background: #fff9c0; text-decoration: none; } sup, sub { font-size: 75%; height: 0; line-height: 0; position: relative; vertical-align: baseline; } sup { bottom: 1ex; } sub { top: .5ex; } small { font-size: 75%; } big { font-size: 125%; } figure { margin: 0; } table { margin: 0 0 1.5em; width: 100%; } th { font-weight: bold; } button, input, select, textarea { font-size: 100%; /* Corrects font size not being inherited in all browsers */ margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */ vertical-align: baseline; /* Improves appearance and consistency in all browsers */ *vertical-align: middle; /* Improves appearance and consistency in all browsers */ } button, input { line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */ *overflow: visible; /* Corrects inner spacing displayed oddly in IE6/7 */ } button, html input[type="button"], input[type="reset"], input[type="submit"] { background: #eee; border: 1px solid #ccc; border-radius: 3px; color: #555; cursor: pointer; padding: 5px 10px; transition: all 0.3s ease-in-out 0s; } button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { background: #ccc; border-color: #aaa; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */ padding: 0; /* Addresses excess padding in IE8/9 */ } input[type="search"] { -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */ -webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */ -moz-box-sizing: content-box; box-sizing: content-box; width: 98%; } input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */ border: 0; padding: 0; } input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea { color: #999; border: 1px solid #ccc; border-radius: 5px; } input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus { color: #111; } input[type="text"], input[type="email"], input[type="password"], input[type="search"] { padding: 5px; } textarea { overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */ padding: 10px; vertical-align: top; /* Improves readability and alignment in all browsers */ width: 98%; } /* Links */ a, a:visited { color: #ff8f85; text-decoration: none; } a:hover, a:focus, a:active { color: #000; } /* Alignment */ .alignleft { display: inline; float: left; margin-right: 1.5em; } .alignright { display: inline; float: right; margin-left: 1.5em; } .aligncenter { clear: both; display: block; margin: 0 auto; } /* Text meant only for screen readers */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; } .screen-reader-text:hover, .screen-reader-text:active, .screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; /* Above WP toolbar */ } /* Clearing */ .clear:before, .clear:after, [class*="content"]:before, [class*="content"]:after, [class*="site"]:before, [class*="site"]:after { content: ''; display: table; } .clear:after, [class*="content"]:after, [class*="site"]:after { clear: both; } /* Alignment */ .alignleft { margin-right: 1.5em; } .alignright { margin-left: 1.5em; } .aligncenter { clear: both; display: block; margin: 0 auto; } /* Transitions */ .site a { -webkit-transition: all 0.3s linear; -moz-transition: all 0.3s linear; -o-transition: all 0.3s linear; transition: all 0.3s linear; } /* Titles ----------------------------------------------- */ .entry-title, .format-link .entry-content a, .format-quote .entry-content p, .entry-content blockquote, .comment-content blockquote { font-family: 'Lora', Georgia, 'Times New Roman', serif; } /* Structure ----------------------------------------------- */ .site { background: #fff; margin-bottom: 0.7em; padding: 0 0.8em 0.8em; } .site-main { margin-top: 2.5em; } .site-main .widget-area { background: #f8f8f8; } .page-template-page-full-width-php { float: none; margin: 0; } .page-template-page-full-width-php #content { margin: 0; } /* Site Header ----------------------------------------------- */ .site-header { text-align: center; } .site-header hgroup { margin: 0.6em 0 1em; text-align: left; } .site-title { font-size: 48px; font-size: 4.8rem; font-weight: 400; line-height: 1.2; text-transform: uppercase; } .site-title, .site-title a { color: #000; } .site-description { color: #777; font-family: 'Muli', Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px; font-size: 1.3rem; line-height: 1.8; } .header-image { margin: 0 0 1.5em; } /* =Menu ----------------------------------------------- */ .navigation-main { background: #ff8f85; clear: both; display: block; float: left; width: 100%; } .navigation-main ul { list-style: none; margin: 0; padding-left: 0; } .navigation-main li { float: left; position: relative; } .navigation-main a { color: #fff; display: block; font-size: 13px; font-size: 1.3rem; padding: 1em; text-decoration: none; text-transform: uppercase; } .navigation-main ul ul { background: #000; border: 1px solid #fff; display: none; float: left; position: absolute; top: 2.5em; left: 0; z-index: 99999; } .navigation-main ul ul ul { left: 100%; top: 0; } .navigation-main ul ul a { padding: 0.5em 1.077em; width: 200px; } .navigation-main li:hover > a { text-decoration: underline; } .navigation-main ul li:hover > ul { display: block; } .navigation-main li.current_page_item a, .navigation-main li.current-menu-item a { /*font-weight: bold; */ color: #fff; } .navigation-main li > a:after, .navigation-main ul li > a:after { color: #999; display: inline-block; font: 6px 'Genericons'; -webkit-font-smoothing: antialiased; } .navigation-main li > a:after { content: ' \f502'; padding-left: 1em; } .navigation-main ul ul li > a:after { content: ' \f501'; float: right; margin-top: 1em; } .navigation-main li > a:only-child:after, .navigation-main ul ul li > a:only-child:after { content: ''; } /* Small menu */ .menu-toggle { background: #000; color: #fff; display: none; cursor: pointer; text-align: center; text-transform: uppercase; } .main-small-navigation ul { list-style: none; } .main-small-navigation ul li a { color: #eee; display: inline-block; font-size: 13px; font-size: 1.3rem; padding: 0 0 0.8em 0.8em; text-transform: uppercase; } @media screen and (max-width: 600px) { .menu-toggle, .main-small-navigation ul.nav-menu.toggled-on { background: #000; display: block; list-style: none; margin: 0; padding: 0.5em; } .navigation-main ul { display: none; } } /* =Content ----------------------------------------------- */ .sticky { } .hentry { margin: 0 0 3.125em; } body.single .hentry { margin: 0 0 1.125em; } .hentry:after, .hentry footer:after, body.page .entry-content:after, body.single .content-area:after, body.single .site-content:after { content: ""; display: block; } .hentry:after, body.single .content-area:after { border-bottom: 4px solid rgba( 0, 0, 0, 1 ); } .hentry footer:after, body.single .site-content:after { border-bottom: 1px solid rgba( 0, 0, 0, 1 ); margin-bottom: 0.3em; padding-top: 3em; } body.single .hentry:after, body.single .hentry footer:after { border: none; margin: 0; padding: 0; } .byline { display: none; } .single .byline, .group-blog .byline { display: inline; } .entry-header { margin-bottom: 1.5em; } .entry-content, .entry-summary { margin: 1.5em 0 0; } .entry-title { clear: none; font-size: 23px; font-size: 2.3rem; font-style: italic; margin: 0.435em 0 0.217em; } .entry-title, .entry-title a { color: #000; } .page-title { color: #999; font-size: 26px; font-size: 2.6rm; padding: 0.769em; text-align: center; } .entry-content, .entry-summary { font-size: 13px; font-size: 1.3rem; line-height: 1.846; } .entry-meta { font-size: 13px; font-size: 1.3rem; line-height: 1.385; } .type-attachment .entry-meta { margin: 0.5em 0 1.5em; } .entry-content .entry-attachment { text-align: center; } .entry-header .entry-meta { text-transform: lowercase; } .entry-header .entry-meta a { text-transform: none; } footer.entry-meta { padding-top: 1.5em; text-align: right; } footer.entry-meta .post-format-meta { display: inline-block; float: left; } .tags-links { display: inline-block; float: left; text-align: left; width: 60%; } .comments-link { display: inline-block; margin-right: 0.5em; } .page-links { clear: both; margin: 0 0 1.5em; } .post-date { background: #ff8f85; border-radius: 100px; float: left; font-size: 12px; font-size: 1.2rem; line-height: 1.1; margin-right: 0.667em; padding: 0.95em 1.05em; text-align: center; text-transform: uppercase; width: 48px; } .post-date a { color: #fff; } .post-date span { display: block; } .post-date .entry-day { color: #fff; font-size: 21px; font-size: 2.1rem; } .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6, .comment-content h1, .comment-content h2, .comment-content h3, .comment-content h4, .comment-content h5, .comment-content h6 { margin-bottom: 0.8em; } .entry-content h1, .comment-content h1 { font-size: 22px; font-size: 2.2rem; } .entry-content h2, .comment-content h2 { font-size: 20px; font-size: 2rem; } .entry-content h3, .comment-content h3 { font-size: 18px; font-size: 1.8rem; } .entry-content h4, .comment-content h4 { font-size: 16px; font-size: 1.6rem; } .entry-content h5, .comment-content h5 { font-size: 14px; font-size: 1.4rem; } .entry-content h6, .comment-content h6 { font-size: 12px; font-size: 1.2rem; margin-bottom: 1.5em; } .entry-content table, .comment-content table { border: 1px solid rgba( 0, 0, 0, 0.1 ); border-width: 1px 1px 0 0; margin: 0 0.077em 0 0; text-align: left; width: 100%; } .entry-content tr, .entry-content th, .entry-content td, .entry-content tbody, .entry-content thead, .entry-content tfoot { border-bottom: 1px solid #ddd; border-left: 1px solid #ddd; padding: 0.769em; vertical-align: top; } .entry-content tr th, .entry-content thead th, .comment-content tr th, .comment-content thead th { background: #efefef; font-weight: 700; line-height: 1.615; } .entry-content blockquote, .comment-content blockquote, .format-quote .entry-content { background: url( 'images/blockquote.gif' ) no-repeat 20px 25px #f8f8f8; color: #888; display: block; font-style: italic; font-size: 16px; font-size: 1.6rem; margin: 1.25em 0; padding: 1.25em 1.25em 1.25em 3.75em; } .entry-content button, html .entry-content input[type="button"], html input[type="reset"], html input[type="submit"] { padding: 0.3em 1.5em; } .error404 #searchform { margin: 2.5em 0; } .more-link { font-style: italic; } .page-links { clear: both; margin: 0 0 1.667em; } .page-links a { display: inline-block; margin-bottom: 0.85em; } .page-links .active-link, .page-links a span.active-link { border-radius: 4px; margin-right: 0.285em; padding: 0.385em 0.838em; } .page-links .active-link, .page-links a span.active-link:hover { background: #eee; color: #666; } .page-links a span.active-link { background: #ff8f85; color: #fff; } /* =Post Formats and Genericons ----------------------------------------------- */ .format-link .entry-title, .format-aside .entry-title { display: none; } .format-link .entry-content a { font-size: 23px; font-size: 2.3rem; } .format-quote blockquote { background: none; margin: 0; padding: 0; } .sticky .entry-title:before { background: #000; border-radius: 100px; color: #fff; content: '\f308'; display: inline-block; font-family: Genericons; font-size: 3.2rem; font-style: normal; float: left; line-height: 1; margin-right: 0.35em; padding: 0.6em 0.35em; text-align: center; text-transform: uppercase; width: 48px; -webkit-font-smoothing: antialiased; } .sticky .entry-date, .sticky .post-date { display: none; } .comments-link:before, .post-edit-link:before, .tags-links:before, .entry-format:before, .post-format-meta .entry-date:before { color: #666; display: inline-block; font: 18px/1em 'Genericons'; margin-right: 0.15em; vertical-align: top; -webkit-font-smoothing: antialiased; } .comments-link:before { content: '\f300'; font-size: 19px; margin-right: 0.2em; } .post-edit-link:before { content: '\f411'; } .tags-links:before { content: '\f302'; margin-right: 0; } .post-format-meta .entry-date:before { content: '\f305'; margin-left: 0.25em; } .format-image .entry-format:before { content: '\f102'; } .format-video .entry-format:before { content: '\f104'; } .format-link .entry-format:before { content: '\f107'; } .format-gallery .entry-format:before { content: '\f103'; } .format-status .entry-format:before { content: '\f105'; } .format-quote .entry-format:before { content: '\f106'; } .format-chat .entry-format:before { content: '\f108'; } .format-audio .entry-format:before { content: '\f109'; } .format-aside .entry-format:before { content: '\f101'; } /* =Media ----------------------------------------------- */ .site-header img, .entry-content img, .comment-content img, .widget img { height: auto; /* Fluid images for posts, comments, and widgets */ } .site-header img, .entry-content img, .comment-content img[height], img[class*="align"], img[class*="wp-image-"] { height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ } .site-header img, .entry-content img, img.size-full { max-width: 100%; } .entry-content img.wp-smiley, .comment-content img.wp-smiley { border: none; margin-bottom: 0; margin-top: 0; padding: 0; } p img, .wp-caption { margin-top: 0.5em; } p img.aligncenter { margin-top: 0.5em; } img.alignleft, img.alignright { margin-bottom: 1.5em; } .wp-caption { background: #eee; border: 1px solid #ccc; margin-bottom: 1.5em; max-width: 100%; } .wp-caption img[class*="wp-image-"] { display: block; margin: 1.2% auto 0; max-width: 98%; } .wp-caption-text { text-align: center; } .wp-caption .wp-caption-text { margin: 0.8075em 0; } #content .gallery { margin: 0 0 1.5em; } .gallery-caption, .entry-caption { color: #999; font-size: 12px; font-size: 1.2rem; } .site-content .gallery a img { border: none; height: auto; max-width: 90%; } .site-content .gallery dd { margin: 0; } #content .tiled-gallery { margin-bottom: 1.5em; } /* Make sure embeds and iframes fit their containers */ embed, iframe, object { max-width: 100%; } /* =Navigation ----------------------------------------------- */ .site-content [class*="navigation"] { margin: 0 0 1.5em; overflow: hidden; } .meta-nav { color: #000; } .navigation-post, .navigation-comment, .navigation-image { border-bottom: 1px solid #eee; border-top: 1px solid #eee; clear: both; font-size: 13px; font-size: 1.3rem; margin-bottom: 1.538em; padding: 0.5em 0; } .navigation-comment { border: none; } .navigation-paging { font-size: 13px; font-size: 1.3rem; } .navigation-paging .meta-nav { color: inherit; } .navigation-paging a { background: #ff8f85; border-radius: 4px; color: #fff; display: inline-block; padding: 0.385em 0.838em; } .navigation-paging a:hover { background: #eee; color: #666; } [class*="navigation"] .previous { float: left; width: 50%; } [class*="navigation"] .next { float: right; text-align: right; width: 50%; } /* =Comments ----------------------------------------------- */ .comment-content a { word-wrap: break-word; } .bypostauthor { } .comments-title { color: #333; font-size: 18px; font-size: 1.8rem; margin: 0.556em 0; } .comment-list li { list-style: none; } .comment-list { margin: 1.667em 0 0 0; } .comment-list, .children { list-style: none; } .children { margin: 0 0 0 6%; } .comment-list li.comment { border-bottom: 1px solid #ddd; margin: 1.875em 0; } .comment-list li .comment { margin-bottom: 1.55em; } .comment-list .children li.comment { border-bottom: none; border-left: 1px solid #ddd; margin: 0; padding: 0 0 0 2.308em; } .comment-list .children li.comment:last-of-type { padding-bottom: 0; } article.comment, li.pingback p { overflow: hidden; position: relative; } .comment-list li.pingback { line-height: 1.7; padding: 1em 0; } .children article.comment, .children li.pingback { padding-top: 1em; } .comment .avatar { border: 1px solid rgba( 0, 0, 0, 0.5 ); float: left; margin-right: 1.250em; } .comment-meta, .comment-meta a { color: #999; } .comment-meta { display: block; font-size: 11px; font-size: 1.1rem; font-style: italic; margin-top: 0.8em; } .comment-author cite { clear: both; color: #555; display: inline-block; font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-size: 1.3rem; font-style: normal; } .comment-content { clear: both; font-size: 13px; font-size: 1.3rem; line-height: 1.8em; margin: 0 0 0.769em 3.631em; padding: 0.385em 0; padding: 0.385em 0.769em; } .comment-content ul, .comment-content ol { margin-bottom: 1.667em; } .comment-content ul ul, .comment-content ol ol { margin-bottom: 0; } .comment-content ul li { list-style: disc; } .comment-content ol li { list-style: decimal; } .comment .reply { font-size: 13px; font-size: 1.3rem; text-align: right; } li.pingback { border-bottom: 1px solid #ddd; font-size: 13px; font-size: 1.3rem; font-weight: bold; } li.pingback p { margin-bottom: 0; } li.pingback a { font-weight: bold; } li.pingback .edit-link { display: inline-block; font-style: italic; } /* Comment Form */ #respond { font-size: 13px; font-size: 1.3rem; margin-bottom: 1.667emem; } #respond #commentform { margin-top: 1em; } #respond #reply-title { color: #333; font-size: 18px; font-size: 1.8rem; } .comment-notes, #commentform .form-allowed-tags, p.nocomments, .logged-in-as, #commentform label, .comment-content em { color: #999; } .required { color: #ff8f85; } #commentform label { display: block; padding-bottom: 0.417em; } #commentform #submit { font-size: 11px; font-size: 1.1rem; padding: 0.7em 0.9em; } #commentform .form-allowed-tags, #commentform .form-allowed-tags code { font-size: 11px; font-size: 1.1rem; } p.nocomments { margin: 2.5em; } #cancel-comment-reply-link { background-color: #ff8f85; color: #fff; cursor: pointer; display: inline-block; float: right; line-height: 1.3; padding: 0.2em 0.6em; text-align: center; } /* =Widgets ----------------------------------------------- */ .widget { background: url( 'images/side_bg.gif' ) repeat-x center bottom; font-size: 13px; font-size: 1.3rem; margin: 0 0 1.538em; padding: 1.538em 1.538em 2.308em; word-wrap: break-word; } .error404 .widget { background: none; padding-left: 0; } .widget-title, .widgettitle, h2.widgettitle { font-size: 16px; font-size: 1.6rem; margin-bottom: 0.938em; text-transform: uppercase; } h2.widgettitle { text-align: left; } .widget-title, #secondary .widget-title a, .widgettitle { color: #888; } .widget ul, .widget ol { margin: 0; } .widget ul li, .widget ol li { line-height: 1.8; list-style: none; margin: 0.385em 0; } /* Make sure select elements fit in widgets */ .widget select { max-width: 100%; } /* Menu & Categories Widgets (With Sub-Items) */ .widget-area .sub-menu, .widget-area .children { margin-left: 1.5em; } .widget-area .sub-menu li, .widget-area .children li { border-width: 0; } /* RSS Widget */ .rsswidget img { margin: 0.2em 0 0 !important; vertical-align: text-top; } /* My Comment */ .rss-date { color: #999; font-size: 90%; font-style: italic; } .rssSummary { font-size: 90%; font-style: italic; margin: 0.5em 0; } /* Authors Widget */ .widget_authors li { background: none !important; overflow: hidden; } .widget_authors ul ul li { overflow: hidden; } .widget_authors img { float: left; margin-bottom: 1em !important; padding-right: 0.833em; vertical-align: text-top; } /* Calendar Widget */ #wp-calendar { border: 1px solid rgba( 0, 0, 0, 0.1 ); border-width: 1px 0 1px 1px; width: 100%; } #wp-calendar caption { color: #999; font-style: italic; font-weight: bold; margin-bottom: 1.154em; text-align: center; } #wp-calendar thead th { background: #ddd; font-size: 90%; padding: 0.5em 0; text-align: center; } #wp-calendar tbody { border-left-width: 0; } #wp-calendar tbody td { border-right: 1px solid rgba(0, 0, 0, 0.1); border-top: 1px solid rgba(0, 0, 0, 0.1); color: #999; font-size: 90%; padding: 0.615em 2%; text-align: center; } #wp-calendar a { color: #999; font-weight: bold; } #wp-calendar tbody td:hover { background: #fff3f3; cursor: pointer; } #wp-calendar tfoot #next { text-align: right; } #wp-calendar #today { background: #fff3f3; font-weight: bold; } #wp-calendar #prev, #wp-calendar #next { font-size: 90%; padding-top: 0.8em; } #wp-calendar tbody .pad { background: none; } #wp-calendar tfoot td { border-top: 1px solid rgba(0, 0, 0, 0.1); border-right: 1px solid rgba(0, 0, 0, 0.1); padding: 0 0.5em 0.6em; } /* Twitter Widget */ .widget_twitter ul li { margin-bottom: 1em; } .widget_twitter .timesince { color: #999; font-size: 90%; } .widget_twitter .twitter-follow-button { margin-top: 0.8em; } /* Recent Comments Widget */ td.recentcommentsavatarend, td.recentcommentsavatartop { padding: 0.385em !important; } .widget_recent_comments td.recentcommentstexttop, .widget_recent_comments td.recentcommentstextend { padding: 0 0.615em 0.5em !important; vertical-align: middle; } .widget_recent_comments a { font-weight: normal; } /* Search Widget */ .widget #searchsubmit { display: none; } /* =Footer ----------------------------------------------- */ .site-footer { background: #000; position: relative; } .site-info { color: #999; font-size: 11px; font-size: 1.1rem; margin: 0 auto; overflow: hidden; padding: 0.909em 1.818em; } .site-info a:hover { color: #ccc; } /* =Social Profile Links ----------------------------------------------- */ #social-networks { text-align: center; } #social-networks ul { list-style: none; margin-left: 1.34em; } #social-networks ul li { display: block; float: left; } #social-networks a { background: #ff8f85; color: #fff; display: inline-block; font-size: 32px; height: 48px; margin-right: 0.5em; overflow: hidden; position: relative; text-align: center; text-decoration: none; width: 48px; } #social-networks .youtube-link a { margin-right: 0; } #social-networks a:hover { background: #000000; } #social-networks a:before { line-height: 1.56; } .genericon { font-family: "Genericons"; font-size: 3.2rem; line-height: 1; } .genericon:before { display: inline-block; vertical-align: top; -webkit-font-smoothing: antialiased; } .facebook-link a:before { content: '\f204'; } .twitter-link a:before { content: '\f202'; } .pinterest-link a:before { content: '\f209'; } .youtube-link a:before { content: '\f213'; } /* =Infinite Scroll ----------------------------------------------- */ /* Globally hidden elements when Infinite Scroll is supported and in use. */ .infinite-scroll .navigation-paging, /* Older / Newer Posts Navigation (always hidden) */ .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ display: none; } #infinite-footer .blog-credits a { color: #ff8f85; } #infinite-handle { text-align: center; } #infinite-handle span { background: #ff8f85; border-radius: 4px; color: #fff; display: inline-block; font-size: 15px; font-size: 1.5rem; padding: 0.385em 0.838em; } /* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */ .infinity-end.neverending .site-footer { display: block; } .infinite-loader .spinner { left: 50% !important; } /* =Media Queries -------------------------------------------------------------- */ /* Minimum width of 600 pixels. */ @media screen and (min-width: 37.500em) { .site { margin: 2.8em auto 0.7em; max-width: 63.750em; } } /* Minimum width of 640 pixels. */ @media screen and (min-width: 40em) { .site-header { position: relative; } .site-header hgroup { margin: 0.5em 0 2em; } .navigation-main { margin-top: 0; } } /* Minimum width of 680 pixels. */ @media screen and (min-width: 42.500em) { .content-area { float: left; margin: 0 0 3em 5.5%; width: 90%; } .site-main .widget-area { float: right; margin: 0 2% 1.875em 0; width: 29.411764705%; } .error404 .widget { float: left; width: 31%; } .widget { background-repeat: no-repeat; } .widget-title, .widgettitle, h2.widgettitle { text-align: center; } body.error404 #primary, body.attachment #primary, body.page-template-page-full-width-php #primary { float: none; width: 100%; } .site-footer { clear: both; width: 100%; } } /* Maximum width of 680 pixels. */ @media screen and (max-width: 63.750em) { #social-networks ul { margin-left: 2.5em; } } /* Minimum width of 1020 pixels. */ @media screen and (min-width: 63.750em) { #site-navigation .menu-main-container, #site-navigation .menu, .site-info { margin-left: 2.5em; } .navigation-main { position: relative; } .navigation-main:before, .navigation-main:after { border: 1.4em solid #ff8f85; content: ""; display: block; position: absolute; bottom: 0; top: 0; z-index: 1; } .navigation-main:before { border-left-color: #fff; border-right-width: 1.5em; left: ; } .navigation-main:after { border-left-width: 1.5em; border-right-color: #fff; right: 0; } .widget #searchsubmit { display: inline-block; } input[type="search"] { width: 60%; } .site-footer:before, .site-footer:after { border: 1.1em solid #000; bottom: 0; content: ""; display: block; position: absolute; z-index: 1; } .page-template-page-full-width-php #content { padding-right: 2em; } .site-footer:before { border-left-color: #fff; border-right-width: 1.5em; left: 0; } .site-footer:after { border-left-width: 1.5em; border-right-color: #fff; right: 0; } }edit: jeszcze w nowych stronach stworzonych przeze mnie pojawia się boczny panel.
W takim razie musisz zmień na dole :
.content-areaTak wcześniej znalazłem 🙂 dzięki,
jeszcze mały niusansik, w podstronach stworzonych przeze mnie typu, o mnie, sport itd pojawia się nadal boczny panel, gdzie usunę to?
Co do panelu bocznego na innych stronach to ta sama sprawa, trzeba usunąć z plików np. single.php i innych, w których nie chcesz mieć panelu, taki kod :
<?php get_sidebar(); ?>Pozdrawiam
Dzięki wielkie 🙂
Temat ‘Wyśrodkowanie wpisów na całą stronę’ jest zamknięty na nowe odpowiedzi.