Vous n'êtes pas identifié.
Annonce
Annonce 1 : Le Codex en français a besoin de vous pour avancer !
Annonce 2 : Avant de poster, n'oubliez pas de faire une petite Recherche et de lire les règles de ce forum.
#1 06-01-2008 13:16:44
Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
Bonjour les gens,
Ma configuration WP actuelle
- Version de WordPress : 2.3.2
- Thème utilisé : Aspire 10-FR
- Plugins en place : image manager, sticky
- Nom de l'hebergeur : ovh
- Adresse du site : http://carnetsvirtuels.org
Problème(s) rencontré(s) :
Le thème Aspire me plait beaucoup, mais je le trouvais trop étroit. Je l'ai donc bidouillé pour augmenter la largeur de la zone principale de 100px. J'ai réussi à déplacer les divers éléments graphiques et à redimensionner ce qui était nécessaire, mais il reste un bout que je n'arrive pas à décaller, qui se voit de suite sur le site.
J'ai touché à toutes les références au Header-bg.jpg mais je n'arrive à rien (enfin, si mais pas à ce que je veux).
Merci pour votre aide !
Voici le CSS actuel (modifié donc par rapport à l'original) :
Code:
- /*
- Theme Name: Aspire - fr
- Theme URI: http://www.infocreek.com/webdesign/aspire.html
- Description: Aspire Designed by <a href="http://www.infocreek.com">InfoCreek </a>. Traduction française par <a href="http://wordpress-tuto.fr">WordPress tuto</a>.
- Version: 1.0
- Author: InfoCreek.com
- Author URI: http://www.infocreek.com/
- http://www.infocreek.com/webdesign/aspire.html
- The CSS, XHTML and design is released under the Creative Common Attribution 3.0 License (http://creativecommons.org/licenses/by/3.0/), which means you can use and modify it for any purpose.
- By downloading our themes, you agree that you:
- 1) Can not resell the theme
- 2) You may use and modify the theme but the footer link back to InfoCreek.com should be retained.
- 3) You may use the theme on personal or commercial projects as far as #2 above is met
- */
- * {margin:0px; padding:0px;}
- body {background: #38690d url(images/body-bg.jpg) center top; text-align:center; font-size:12px; color:#240f02; font-family: Verdana, Arial, Helvetica, sans-serif;}
- img {border: medium none;}
- blockquote {padding: 5px 20px; text-align: left; color:#602600}
- blockquote blockquote {padding: 2px 10px; text-align: left; color:#602600; font-style:italic;}
- a {text-decoration:none; color:#c97e00; border: 0px;}
- a:hover {text-decoration:underline; border: 0px;}
- a.u {text-decoration:underline; border: 0px;}
- a.u:hover {text-decoration:none; border: 0px;}
- a.n, a.n:hover {text-decoration:none; border: 0px;}
- a:focus, a:active {outline: none;}
- p {padding:7px 0; line-height: 17px;}
- .border {border:1px solid red;}
- h1, h2, h3, h4 { font-family: "Trebuchet MS";}
- hr {border-left:0px solid #abb0b5; border-right:0px solid #abb0b5; border-top:1px dotted #abb0b5; border-bottom:0px solid #abb0b5; height: 1px;}
- input {font-family: 'Verdana'; color: #240f02; font-size: 11px;}
- textarea {font-family: 'Verdana'; color: #240f02; font-size: 11px;}
- select {font-family: 'Verdana'; color: #240f02; font-size: 11px;}
- .left-bg {position:absolute; left:0px; top:0px; width:50%; height:517px; margin-left:-495px; background: url(images/top-left-bg-repeat.jpg) right top repeat-x;}
- .script {position:absolute; right:0px; top:104px; width:100%; height:413px; background: url(images/left-bg.jpg) right top no-repeat;}
- .right-bg {position:absolute; right:0px; top:0px; width:50%; height:223px; background: url(images/top-right-bg-repeat.jpg) 40px 0px repeat-x;}
- #head {position:relative; width:990px; height:250px; margin:0 auto; text-align:left; background: url(images/top-right-bg-repeat.jpg) 90px 0px repeat-x;}
- .crack {position:absolute; left:0px; top:0px; width:990px; height:51px; background: url(images/crack.jpg) 727px 0px no-repeat;}
- .header {width:727px; height:250px; background: url(images/header-bg.jpg) no-repeat;}
- .logo {position:absolute; left:0px; top:120px; width:727px;}
- .logo h1 {font: bold 26px/120% Georgia; color:#602600; padding:0 0 10px 20px; margin-right:16px;}
- .logo h1 a, .logo h1 a:hover {color:#602600; text-decoration:none;}
- .logo a b {}
- .shadow-right {position:absolute; left:727px; top:115px; width:102px; height:380px; background: url(images/right-bg.jpg) no-repeat;}
- #menu {position:absolute; left:100px; top:80px;}
- #menu ul {list-style:none;}
- #menu ul li {display:block; float:left; padding:0 17px;}
- * html #menu ul li {display:inline;}
- #menu ul li a {color:#97712c;}
- .searchbox {position:absolute; left:640px; top:100px; width:176px; font-size:11px; color:#97712c;}
- #searchform .label {display:block; padding:0px 0px 2px 5px;}
- .search {width:135px; height:20px; background: url(images/search-input.gif) left top no-repeat; float:left;}
- #searchform input {border:none; background:transparent url(images/go-button.gif) left top no-repeat; font-weight: bold; color:#ceb978; width:30px; height:20px; float:right;}
- #searchform .search #s {border:none; background:transparent; color:#ceb978; width:125px; height:auto !important; margin:3px 0 0 4px; float:left;}
- #content {position:relative; width:1090px; margin:0 auto; text-align:left;}
- #main {position:relative; float:left; width:727px;}
- .content {position:relative; width:727px; background: url(images/content-bg.jpg);}
- .cont-r {position:relative; background: url(images/border.gif) right top repeat-y;}
- .cont-l {position:relative; background: url(images/border.gif) left top repeat-y;}
- .cont-bot {position:relative; background: url(images/content-bottom-bg.jpg) left bottom no-repeat; top:0px; bottom:0px; min-height:380px;}
- .grad-hack {position:relative; background: url(images/header-bg.jpg) 0px -170px no-repeat; width:727px; overflow:hidden; margin-top:-80px; padding-bottom:20px}
- .begin {background: url(images/begin.gif) 10px 0px no-repeat; position:absolute; top:0px; left:0px; width:100%; height:40px; z-index:10;}
- .content h1 {font: 20px "Trebuchet MS"; color:#602600; letter-spacing:-1px; padding-top:10px;}
- .content h2 {font:bold 18px "Trebuchet MS"; color:#602600; padding:10px 0px 2px 20px;}
- .content h3 {font:bold 16px "Trebuchet MS"; color:#602600; padding:10px 0px 2px 20px;}
- .content h4 {font:bold 14px "Trebuchet MS"; color:#602600; padding:7px 0px 2px 15px;}
- .content h5 {font:bold 12px "Trebuchet MS"; color:#602600; padding:5px 0px 2px 10px;}
- .content h6 {font:bold 10px Verdana; color:#602600; padding:5px 0px 2px 0px;}
- .content h3.pagetitle {position:absolute; top:0px; right:30px; padding:0px; font-size:12px;}
- .post {padding:24px 10px 10px 10px; background: url(images/post-devider.jpg) no-repeat;}
- .post1 {padding:0px 10px 10px 10px;position:relative; z-index:100;}
- * html .post {position:relative;}
- * html .post1 {position:relative; height:350px;}
- .content .title {padding:0px;}
- .content .date {font:normal 24px/47px Georgia; margin-right:10px; color:#ffffff; float:left; width:59px; height:56px; overflow:hidden; text-align:center; background: url(images/date-bg.gif) no-repeat;}
- .content .date .month {font: 14px/16px Arial; color:#4c2604; margin:-10px 0px 0 0; text-transform:lowercase;}
- .content h1 a, .content h1 a:hover {color:#602600; text-decoration:none;}
- .content p.author {color:#240f02; padding:0px 0px 0px 0px; font-size:11px;}
- .entry {position:relative; padding:0 0 10px 0; clear:both;}
- .entry img {border:1px solid #99ba09; margin:0px 5px 5px 5px; max-width:603px}
- .postmetadata {padding:5px 75px 0px 20px; text-align:right; background: url(images/num-comm-right.jpg) 100% 5px no-repeat; margin-right:15px; clear:both;}
- * html .postmetadata {display:inline-block;}
- *:first-child+html .postmetadata {display:inline-block;}
- .postmetadata .comm-num-left {padding:5px 0px 7px 75px; float:right; background: url(images/num-comm-left.jpg) no-repeat;}
- .content h2.center {padding:25px 0; text-align:center;}
- .wp-pagenavi {position:absolute; left:10px; bottom:-22px; z-index:300; font-size:11px;}
- .wp-pagenavi a, .wp-pagenavi a:link, .wp-pagenavi a:active {float:left; font-size:11px; background:#ca9417 url(images/page-num-bg.gif) 0 0 no-repeat !important; line-height:16px; padding:0 4px !important; color:#602600 !important; margin:0 3px 0 0 !important; border:none !important;}
- .wp-pagenavi a:hover {background:#602600 url(images/page-num-bg.gif) 0 0 no-repeat !important; font-size:11px; color:#ca9417 !important; text-decoration:none; border:none !important;}
- .wp-pagenavi span.pages {float:left; font-size:11px; padding: 0px 4px 0px 4px !important; line-height:16px; margin: 0px 3px 0px 0px !important; color: #ca9417 !important; border: none !important; background:#602600 !important;}
- .wp-pagenavi span.current {float:left; font-size:11px; background:#602600 url(images/page-num-bg.gif) 0 0 no-repeat !important; line-height:16px; padding:0 4px !important; color:#ca9417 !important; margin:0 3px 0 0 !important; border:none !important;}
- .wp-pagenavi span.extend {float:left; font-size:11px; background:none !important; line-height:16px; padding:0 4px !important; color:#602600 !important; margin:0 3px 0 0 !important; border:none !important;}
- .wp-pagenavi2 {position:absolute; left:10px; bottom:-22px; z-index:300; font-size:11px;}
- .wp-pagenavi2 a, .wp-pagenavi2 a:link, .wp-pagenavi2 a:active {float:left; font-size:11px; background:#ca9417 url(images/page-num-bg.gif) 0 0 no-repeat; line-height:16px; padding:0 4px; color:#602600; margin:0 3px 0 0; border:none;}
- .wp-pagenavi2 a:hover {background:#602600 url(images/page-num-bg.gif) 0 0 no-repeat; color:#ca9417; text-decoration:none;}
- #main ul {position:relative; list-style:none; padding:5px 20px;}
- #main ul li {display:block; padding:2px 0px 2px 12px; background: url(images/marker.gif) 0px 7px no-repeat;}
- #main ol {padding: 5px 40px; list-style: decimal}
- #main ol li {padding:2px 0px 2px 0px;}
- #comments {}
- #comments a {}
- #comments h4 {padding-left:20px;}
- .nocomments {padding: 0 20px 30px 20px;}
- .message-bottom {position:relative; background: url(images/message-bottom.gif) left bottom repeat-x;}
- .message-top {position:relative; background: url(images/message-top.gif) 0 5px repeat-x;}
- .message-right {position:relative; background: url(images/message-right.gif) 100% 0px repeat-y;}
- .message-left {position:relative; background: url(images/message-left.gif) 0 0 repeat-y;}
- .mes-br {position:relative; background: url(images/message-br.jpg) right bottom no-repeat;}
- .mes-bl {position:relative; background: url(images/message-bl.jpg) left bottom no-repeat;}
- .mes-tr {position:relative; background: url(images/message-tr.jpg) right top no-repeat;}
- .mes-tl {position:relative; background: url(images/message-tl.jpg) left top no-repeat; width:100%;}
- .message-by {padding:15px 0 5px 0; font:16px/18px "Trebushet MS"; color:#602600; text-align:center;}
- .message-count {text-align:center;}
- .message-count span {display:inline-block; border:1px solid #8a5f3b; font:12px/14px Georgia; position:relative; padding:0 5px;}
- .message-count span b.count-l {position:absolute; left:-74px; top:1px; height:14px; width:72px; line-height:0px; font-size:0px; background: url(images/message-number-right.gif) left top no-repeat;}
- .message-count span b.count-r {position:absolute; right:-76px; top:1px; height:14px; width:74px; line-height:0px; font-size:0px; background: url(images/message-number-left.gif) right top no-repeat;}
- .message-entry {position:relative; padding:10px 20px 20px 20px;}
- .message-time {font-size:11px; line-height:20px; color:#efe7c6; height:20px; width:250px; background: #b27110 url(images/message-time-right.gif) right top no-repeat; margin:10px 20px 0 10px;}
- .message-time span {display:block; height:20px; padding:0 25px; background: url(images/message-time-left.gif) left top no-repeat;}
- #response {position:relative;}
- #response h4 {padding:20px 0px 5px 20px;}
- #response div.form {width:100%; position:relative; border:1px solid #a4813c;}
- * html #response div.form {width:100%;}
- #response div.form #commentform {padding:10px;}
- .inputs {position:relative; width:49%; float:left;}
- .input {position:relative;}
- .input b {color:#c97e00;}
- .inputs input {position:relative; background:#ede5c3; border:1px solid #a4813c; width:99%; padding:2px; margin-bottom:5px;}
- .message {position:relative; width:49%; float:right; text-align:center;}
- .message .input {margin-bottom:0px; text-align:center;}
- .message textarea {background:#ede5c3; border:1px solid #a4813c; width:99%; height:92px; padding:1px;}
- .submit {text-align:right; margin-top:10px;}
- * html .submit {margin-top:0px;}
- *:first-child+html .submit {margin-top:0px;}
- #sidebars {position:relative; width:350px; float:right; margin-top:-66px;}
- #sidebars #searchform #s {border:1px solid #212121; background:#689330; background-image:none; color:#ffffff; width:100%; height:auto !important; margin:0px 0 0 0px;}
- #sidebar-left {width:170px; float:left; overflow:hidden;}
- #sidebar-right {width:170px; float:right; overflow:hidden;}
- .sb-bot {background:url(images/sidebar-bottom.jpg) center bottom repeat-x; margin-top:15px;}
- .sb-top {background:url(images/sidebar-top.jpg) center top repeat-x;}
- .sb-right {background:url(images/sb-border.gif) right top repeat-y;}
- .sb-left {background:url(images/sb-border.gif) left top repeat-y;}
- .sb-rb {background:url(images/sidebar-rb.jpg) right bottom no-repeat;}
- .sb-lb {background:url(images/sidebar-lb.jpg) left bottom no-repeat;}
- .sb-rt {background:url(images/sidebar-rt.jpg) right top no-repeat; width:100%}
- .sb-lt {position:relative; background:url(images/sidebar-lt.jpg) left top no-repeat; padding:10px 10px 15px 10px; width:147px; overflow:hidden;}
- #sidebars h2 {position:relative; font:bold 16px "Trebuchet MS"; color:#602600; margin:0 -6px; text-align:center; background:url(images/sidebar-title-line.jpg) center bottom no-repeat; padding:3px 0 18px 0;}
- #sidebars a {color:#602600;}
- #sidebars ul {display:inline-block; position:relative; padding:3px 0 0px 0; list-style:none; background:none}
- #sidebars ul li {display:block; position:relative; font-size: 12px; color:#240f02; padding:0px 0px}
- * html #sidebars ul li {display:inline-block;}
- *:first-child+html #sidebars ul li {display:inline-block;}
- #sidebars ul li a {color:#602600; padding:2px 0px 2px 15px; display:block; background: url(images/sb-marker.gif) 3px 7px no-repeat;}
- #sidebars ul li.current-cat a {color:#240f02; background:#c18c35 url(images/sb-marker-hover.gif) 3px 7px no-repeat;}
- #sidebars ul li a:hover {color:#240f02; background:#c18c35 url(images/sb-marker-hover.gif) 3px 7px no-repeat; text-decoration:none;}
- #sidebars ul li p a {color:#602600; display:inline; background: none; padding:0px;}
- #sidebars ul li p a:hover {color:#602600; display:inline; background:#c18c35 none; padding:0px;}
- #sidebars ul li ul {padding:0px 0 0px 0px; list-style:none;}
- #sidebars ul li ul li a {padding:2px 0px 2px 25px; background: url(images/sb-marker.gif) 13px 7px no-repeat;}
- #sidebars ul li ul li a:hover {background:#c18c35 url(images/sb-marker-hover.gif) 13px 7px no-repeat;}
- #wp-calendar {width:100%; font-size:11px; font-family:Georgia; text-align:center;}
- #wp-calendar td {font-size:11px; text-align:center;}
- #wp-calendar td a {display:block; background:#ca9417 url(images/page-num-bg.gif) 0 0 no-repeat; color:#602600;}
- #wp-calendar td a:hover {display:block; background:#602600 url(images/page-num-bg.gif) 0 0 no-repeat; color:#ca9417; text-decoration:none;}
- #recentcomments li a {background:none !important; padding:0 0 0 0;}
- .textwidget iframe {position:relative; margin:0 -5px 10px -5px;}
- .logo-bottom {position:absolute; right:30px; bottom:15px; z-index:1000;}
- a:hover abbr {border:none;}
- #footer {width:990px; margin:0 auto; text-align:left;}
- #footer a {color:#602600;}
- .copy {position:relative; padding:25px 0px 15px 0px; font-size:11px; z-index:100; width:590px; text-align:right;}
- .valid {position:absolute; right:-200px; top:22px; font-size:11px; background:#ca9417 url(images/page-num-bg.gif) 0 0 no-repeat; line-height:22px; padding:0 7px;}
- .ping-track {position:relative; border:1px solid #a4813c; padding:10px;}
- .up {text-transform:uppercase;}
- .center {text-align:center;}
- .l, .left {float:left;}
- .r, .right {float:right;}
- .textleft {text-align:left !important;}
- .clear {clear:both;}
- #wp-admin-bar {align:center; margin:0; padding:5px; background:#f9f9f9; border:1px solid #666; clear:both; text-align:center}
- #wp-admin-bar ul {margin:0; padding:0}
- #wp-admin-bar ul li {list-style-type:none; display:inline; margin:0 10px; padding:0}
Hors ligne
#2 06-01-2008 16:37:55
Re: Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
Ce n'était pas le header-bg.jpg qui posait problème, mais tout le #head 
Reste une dernière chose à régler : je n'arrive pas à mettre le nombre d'articles en face des catégories, il s'affiche toujours en dessous et c'est moche.
Voilà ce que j'ai :
Code:
- <div class="sb-bot"><div class="sb-top"><div class="sb-right"><div class="sb-left">
- <div class="sb-rb"><div class="sb-lb"><div class="sb-rt"><div class="sb-lt">
- h2>Catégories</h2>
- <ul>
- [b]<?php wp_list_categories('orderby=ID&show_count=1&title_li=0&hierarchical=1&order=ASC'); ?> [/b] </ul>
- </div></div></div></div>
- </div></div></div></div>
Note : j'ai essayé d'élargir la colonne Sidebar en pensant qu'elle était peut-être trop courte mais ce n'est pas ça.
Dernière modification par ( Tchey ) (06-01-2008 16:50:22)
Hors ligne
#3 07-01-2008 00:45:55
Re: Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
La première étape serait d'éliminer toutes les erreurs de codage HTML identifiées par le validateur W3C.
Cela m'est déjà arrivé d'avoir des problèmes de mise en page, pas liés au CSS, mais à des erreurs html.
PS : j'aime beaucoup l'ambiance visuelle de ton site !
Dernière modification par fantôme (07-01-2008 00:47:53)
Hors ligne
#4 07-01-2008 09:20:15
Re: Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
En supprimant les <ul> et </ul>, les catégories mères sans filles affichent le nombre d'articles correctement, mais pas les autres. Les catégories mères avec filles font le retour à la ligne, et les catégories filles également. Zarb' comme truc.
Code:
- <div class="sb-bot"><div class="sb-top"><div class="sb-right"><div class="sb-left">
- <div class="sb-rb"><div class="sb-lb"><div class="sb-rt"><div class="sb-lt">
- <h2>Catégories</h2>
- <?php wp_list_categories('orderby=ID&show_count=1&title_li=0&hierarchical=1&order=ASC'); ?>
- </div></div></div></div>
- </div></div></div></div>
Dernière modification par ( Tchey ) (07-01-2008 09:20:26)
Hors ligne
#5 07-01-2008 23:42:59
Re: Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
J'ai comme l'impression qu'il te faudrait jetter un oeil du côté de
Code:
- #sidebars ul li a et plus particulièrement la propriété display
...
Hors ligne
#6 08-01-2008 14:43:41
Re: Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
J'ai beaucoup de mal à déchiffrer cette partie du CSS. Je comprends vaguement, mais pas les incidences précises. Voilà ce que j'ai :
Code:
- #sidebars h2 {position:relative; font:bold 16px "Trebuchet MS"; color:#602600; margin:0 -6px; text-align:center; background:url(images/sidebar-title-line.jpg) center bottom no-repeat; padding:3px 0 18px 0;}
- #sidebars a {color:#602600;}
- #sidebars ul {display:inline-block; position:relative; padding:3px 0 0px 0; list-style:none; background:none}
- #sidebars ul li {display:block; position:relative; font-size: 12px; color:#240f02; padding:0px 0px}
- * html #sidebars ul li {display:inline-block;}
- *:first-child+html #sidebars ul li {display:inline-block;}
- #sidebars ul li a {color:#602600; padding:2px 0px 2px 15px; display:block; background: url(images/sb-marker.gif) 3px 7px no-repeat;}
- #sidebars ul li.current-cat a {color:#240f02; background:#c18c35 url(images/sb-marker-hover.gif) 3px 7px no-repeat;}
- #sidebars ul li a:hover {color:#240f02; background:#c18c35 url(images/sb-marker-hover.gif) 3px 7px no-repeat; text-decoration:none;}
- #sidebars ul li p a {color:#602600; display:inline; background: none; padding:0px;}
- #sidebars ul li p a:hover {color:#602600; display:inline; background:#c18c35 none; padding:0px;}
- #sidebars ul li ul {padding:0px 0 0px 0px; list-style:none;}
- #sidebars ul li ul li a {padding:2px 0px 2px 25px; background: url(images/sb-marker.gif) 13px 7px no-repeat;}
- #sidebars ul li ul li a:hover {background:#c18c35 url(images/sb-marker-hover.gif) 13px 7px no-repeat;}
Hors ligne
#7 09-01-2008 19:39:19
Re: Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
Essaye de remplacer block par inline dans la propriété citée au-dessus.
Hors ligne
#8 11-04-2008 09:17:37
Re: Modif' d'un thème, je bute sur un dernier élément du CSS, merci :)
Bonjour,
J'aime beaucoup le thème Aspire.
Petite question: qu'as-tu utilisé pour installer la navigation par page ? Je la trouve vraiment très réussie.
Merci.
Hors ligne









