Ok, vielen Dank noch für die Erläuterung, das ergibt natürlich Sinn :-)
Beiträge von spacefrog
-
-
Was spricht gegen die Benutzung von "<?php bloginfo('template_directory'); ?>"?
Danke so geht's. Das Grundproblem verstehe ich aber trotzdem nicht.
Absolute Pfade wollte ich gerne verhindern, da eignet sich dieser templatetag ja trotzdem gut.
-
Hallo,
ich habe gerade ein frisches Projekt gestartet und versucht Permalinks der Form
zu verwenden. Das klappt auch problemlos, bis ich mir z.B. einen Beitrag ansehe:
Dann funktionieren die relativen Pfade ("wp-content/themes/rosking/images/gallink.gif"), die ich z.B. für Bilder in der Sidebar verwende, nicht mehr. Warum?
Wäre für Hilfe dankbar!
-
bestimmt sogar, aber ich kann dein Blog nicht erreichen
Ja, das Problem besteht bei einem Projekt, das momentan noch lokal auf meinem Rechner läuft.
Olaf, leider hat dieser code auch nicht funktioniert...ich verstehe das einfach nicht. -
Weitere Vorschläge? Das muss doch irgendwie machbar sein?
-
Das funktioniert leider nicht, hatte ich auch schon versucht...aber danke!
-
Hallo,
nachdem ich nun ewig rumprobiert habe, aber anscheinend auf dem schlauch sitze, wende ich mich nun hoffnungsvoll an das forum :-)Meine Links sehen folgendermaßen aus:
Leider besitzen jetzt aber auch alle verlinkten Bilder diese Eigenschaft (selbst der "next"link in lightbox!). Wie kann ich _allen_ verlinkten Bildern im Blog die Eigenschaft border:none; mitgeben?
Vielen Dank!
-
Danke, das war der entscheidende Tipp.
Wer dasselbe Problem hat: bei mir hat dieses geholfen:
SELFHTML Forumsarchiv / 2006 / April / Neue Lösung für 3px Gap Fehler gefunden!? -
Hallo,
seit Stunden schlage ich mich jetzt mit einem Problem rum - ich hoffe mir kann jemand helfen.
Im InternetExplorer ist mein kompletter Content-Teil (= alles was nicht sidebar und nicht footer ist) um 3 Pixel nach rechts verschoben.
Sämtliche Beiträge sind um 13 Pixel nach unten verschoben.
Mein Code (index.php):
PHP
Alles anzeigen<?php get_header(); ?> <?php get_sidebar(); ?> <div id="content"> <h3><?php single_cat_title(''); ?></h3> <div class="singsep"></div> <?php if ($posts) { foreach($posts as $post) { start_wp(); ?> <!--<br />--> <div class="post"> <div class="cite"><?php the_time("l, j. F Y") ?> <?php edit_post_link("[EDITIEREN]"); ?><br /></div> <div class="posttitle"><a class="posttitle" href="<?php the_permalink() ?>" rel="bookmark" title="Link zum Beitrag '<?php the_title(); ?>'"><?php the_title(); ?></a></div> <!--<div class="text">--><?php the_content('Den ganzen Beitrag lesen...'); ?><!--</div>--> <div class="cite">~ Dieser Beitrag wurde von <?php the_author_firstname(); ?> verfasst und in der Kategorie '<?php the_category(',') ?>' abgelegt.</div> <div class="sep"></div><div class="sepdot"></div> </div> <?php } // closes printing entries with excluded cats ?> <?php } else { ?> <?php _e('Sorry, no posts matched your criteria.'); ?> <?php } ?> <div class="right"><?php posts_nav_link('','','previous »') ?></div> <div class="left"><?php posts_nav_link('','« newer ','') ?></div> <br /><br /> <?php get_footer(); ?> </div>Meine CSS (Ausschnitt):
Code
Alles anzeigenbody { background: url('images/bbg.gif'); font-family: Arial; text-align:left; font-size: 8pt; margin: 0px; padding: 0; } #wrapper { position: relative; min-height: 100%; margin-left: 30px; background: transparent; } #masthead { background: transparent; width: 300px; height: 19px; margin:0 0 30px 0; } #blogTitle { position: relative; background: url('images/head.gif') no-repeat; width: 268px; height: 75px; } #sidebar { float: left; width: 200px; background: transparent; text-align: left; font-family: Arial; color: #f4e6ea; font-size: 8pt; margin: 40px 0 0 0px; } #content { width: 700px; margin: 0 0 0 300px; background: url('images/contbg.gif') repeat; text-align: left; position: relative; padding: 0; } #footer { font-size: 7pt; font-family: Georgia; text-transform: uppercase; color: #fff; width: 700px; height: 48px; background: url('images/foot.gif') no-repeat; margin: 0 0 20px 300px; text-align: center; padding: 0px; } .post { position: relative; width: 600px; margin-top: 14px; background: transparent; text-align: left; padding-left: 60px; background: url('images/post.gif') no-repeat; background-position: 13px 3px; font-family: Arial; font-size: 9pt; color: #FFFFFF; } .posttitle { font-family: Georgia; font-size: 17pt; color: #332620; } .title { font-family: 'Arial'; color: #da4358; font-size: 8.5pt; text-transform: uppercase; background: url('images/star.gif') no-repeat; padding-left: 20px; margin: 0; } .title:hover { background: url('images/star_hov.gif') no-repeat; } h1 { font-family: Arial; font-size: 9pt; text-transform: uppercase; font-weight: normal; color: #da4358; background: url('images/nav_arrow_0.gif') no-repeat 75px; margin: 0; } h3 { font-family: Georgia; font-size: 23pt; font-weight: normal; color: #fff; margin:0 0 10px 60px; padding-top: 20px; } .input { background: #f2546e; border: none; color: #fff; padding: 2px; } h1:hover { background: url('images/nav_arrow_1.gif') no-repeat 75px; } ul { margin: 0px; padding-left: 20px; line-height: 160%; } li { list-style-type: none; margin: 0px; } .left { float: left; margin: 0px 10px 0px 10px; } .right { float: right; margin: 0px 10px 0px 10px; } .centeredImage { text-align:center; margin-top:10px; margin-bottom:0px; padding:0px; } .sep { position: relative; background: url('images/cut.gif') no-repeat; width: 680px; height: 18px; margin-left: -80px; } .sepdot { background: url('images/dot.gif') repeat-x; width: 659px; height: 1px; margin: -10px 0 0 -37px; position: relative; } .singsep { background: url('images/dot.gif') repeat-x; width: 680px; height: 1px; margin-left: 10px; position: relative; } .commentBox { position: relative; margin: 0 auto; width: 90%; background-color: #f5f5f5; text-align: left; border: 1px solid #999; padding: 5px; } .cite { font-size: 7.5pt; color:#332620; margin-bottom: 5px; } code { font-family: Courier New, Verdana; text-align:left; color:#666; font-size: 8pt; } input { border: 1px solid #333333; background-color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; padding: 0px; } h2 { color: #666; font-size: 14px; text-align: left; } blockquote, blockquote p { text-indent: 0px; margin-bottom: 7px; color: #666; }Danke im Voraus!
-
Hallo;
Ich bin derzeit auf der Suche nach einem CMS aufgrund dessen ich eine Website für meinen Verein aufbaue.
Es wird viel statischen Inhalt geben, verändert werden aktuelle Einträge, Berichte, etc., Termine (--> Terminkalender?!?)...Haltet ihr Wordpress für geeignet? Könnt ihr mir ein anderes (kostenfreies) CMS empfehlen?
Vielen Dank!
-
dank pichfl sieht das ganze jetzt so aus:
PHP<li class="comment"> <div class="content"><?php comment_text() ?></div> <cite class="about"><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> am <?php comment_date('l, d.n.y') ?> um <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link(__("edit"), ''); ?> </cite> </li>Code
Alles anzeigenol#comments li.comment div.content { color: #b09f02; text-align: justify; max-width: 354px; } ol#comments li.comment cite.about { max-width: 354px; display:block; font-style:normal; font-size: 7pt; color:#685341; padding-bottom: 17px; clear: left; } ol#comments{ margin:3em 0 2em 0; padding:.1em 0; } ol#comments li.comment{ list-style-item:none; display:block; margin: 0; padding:30px 0 30px 12px; background:transparent url('images/commentbg.png') 0 100% no-repeat; } ol#comments li.comment div.content { color: #b09f02; text-align: justify; max-width: 354px; } ol#comments li.comment cite.about { max-width: 354px; display:block; font-style:normal; font-size: 7pt; color:#685341; padding-bottom: 17px; clear: left; } ol#comments li.comment cite.about a, ol#comments li.comment cite.about a:visited{ color:#685341; }...und funktioniert wunderbar.
-
dann vermute ich mal, dass sich die grafik unter den kommentar schiebt. wie sieht die transparenz im IE aus?
sorry, den satz verstehe ich nicht so recht. natürlich ist die grafik unter dem kommentar, soll sie ja auch...
Die Transparenz sieht im IE gar nicht aus, weil es sich um eine png-datei mit alpha-channel handelt, und das kapiert der IE ja nicht.das theme läuft im moment nur auf einer xampp-installation auf meinem rechner, daher kann ich leider keinen link geben. aber den code natürlich gerne...
Auszug aus der comments.php:
PHP<div class="commentBox"> <div class="commentText"></div> <div class="comcite"><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> am <?php comment_date('l, d.n.y') ?> um <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link(__("edit"), ''); ?></div>style.css:
Code
Alles anzeigen.commentBox { position: relative; margin: 0 auto; width: 380px; min-height: 190px; overflow:hidden; background: url('images/commentbg.png') no-repeat bottom; padding-bottom: 44px; } .commentText { color: #b09f02; text-align: justify; max-width: 354px; margin-left: 12px; } .comcite {margin-left: 12px; max-width: 354px; margin-top: -7px;} .comcite, .comcite a, .comcite a:visited { font-size: 7pt; color:#685341; }Vielen Dank schonmal...
-
exakt 190px (es wird nach oben allerdings transparent wie man sieht)
-
Hallo.
Mein Problem ist folgendes:
PHP<div class="commentBox"> <div class="commentText"><?php comment_text() ?></div> <div class="comcite">[...]</div> </div>Der Container "commentBox" hat (logischerweise) eine variable Höhe und er hat ein Hintergrundbild welches mit "bottom" formatiert ist.
Die Container "commentText" und "comcite" sollen jetzt beide am unteren Rand von "commentBox" anliegen. Allerdings haben auch sie eine variable Höhe (je nachdem wie lang der Kommentar eben ist). Bei langen Kommentaren (die bis unten reichen) klappt das auch wunderbar, aber bei kurzen Kommentaren sieht es eben nicht so aus (s. Anhang)
vertical-align fällt weg, da es sich um Block-Level-Elemente handelt (soweit ich bisher gelesen habe). What to do? -
okay, ist soweiso nicht mehr so wichtig, ich trickse jetzt mir grafiken. wäre eben einfacher gewesen.
-
hm, gute idee, aber ich bekomme es leider ums verrecken nicht hin, dass ich statt 'whatever text' zum beispiel '<?php wp_get_links(1); ?>' einsetzen kann. er gibt mir die funktion einfach nicht aus. habe runPHP laufen. hast du ne idee was man machen könnte?
-
hallo,
ich brauche unbedingt ein Plugin mit dem es möglich ist die Auflistung der Archive statt im Format "Oktober 2005" z.B im Format "OKT/05" anzeigen zu lassen.1. Gibt es sowas?
2. Wenn nicht - könnte sich da jemand dran machen?
3. falls nicht - könnt ihr mir wenigstens irgendnen tipp geben, wo man da ansetzen müsste?danke,
spacefrog
-
danke fürs suchen! ich hoffe du treibst was auf :).
-
ich bin gerade dabei mir ein völlig neues design aufzubauen, mit meinem jetzigen blog hat das gar nichts zu tun. aber irgendwie muss man die form der anzeige doch in dem get_archives tag anpassen können, oder? (so wie bei the_date z.B.)
-
kommt schon, ihr habt doch sicherlich nicht alle die standard-formatierung, oder?