Ich habs jetzt soweit hin gekriegt, danke für die Hilfe!
Eine sache hätt ich noch gerne, ich möchte die Widgets mittels float:left nebeneinander positionieren, aber es tut sich nix.. hast du ne Idee warum?
Beiträge von yessir
-
-
Vielleicht hab ich mich etwas unklar ausgedrückt.
Also ich möchte Widgets einzeln stylen und positionieren. Wir kann ich einem Widget individuell eine ID zuweisen? -
das muss doch hier iwer wissen?! :-(
-
Hi!
weiß jemand wie ich Widgets in der "Fußzeile, erster Bereich" nebeneinander- statt untereinander ausrichten kann??Danke
-
Hi! Wollte eigentlich nur eine neue Seite erstellen, aber beim Klick auf "Ansehen" kommt nur eine Fehlermeldung:
PS: ich habe wordpress local zum Testen auf mein Macbook installiertObjekt nicht gefunden!
Der angeforderte URL konnte auf dem Server nicht gefunden werden. Der Link auf der verweisenden Seite scheint falsch oder nicht mehr aktuell zu sein. Bitte informieren Sie den Autor dieser Seite über den Fehler.
Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den Webmaster hierüber.
Error 404
localhost
Sat Aug 13 21:40:05 2011
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1 -
exakt das selbe such ich auch!!
wäre cool, wenn sich hier mal eine kleine Diskussion ergeben würde, inwieweit sich das ganze realisieren lässt.. :mrgreen: -
Hey!
Ich wollt mal fragen, ob es eine (möglichst) einfache Möglichkeit gibt
so ein Commentsystem in Wordpress einzubauen?Hier die Demo dazu.
Gruß und vielen Dank
-
ok :)
dachte, die kategorien wären unterseiten von der hauptseite..gibt es keine möglichkeit dem script nicht sagen "sei active, wenn kategorie angeklickt ist" ?! ..oder so ähnlich^^
-
ah jetzt geht es :D ..mit 'is_home' funktionierts!
..aber wenn man eine kategorie anklickt, macht er keine der 3 seiten active! woran könnte das noch liegen?
-
hm.. ich seh da nicht so wirklich durch, aber habe mal anstatt 'home' -> 'is_front_page' bzw 'is_home' bzw 'is_front_page' eingesetzt.. leider ohne erfolg!
-
Jap klar sobald ich eine vollständige Lösung für diese ganze Sache habe, werde ich sie hier posten.
Stand jetzt: ..die Unterseiten funktionieren, aber die Home Seite nicht!
Ich habe mal noch ein wenig recherchiert im Netz und nun ein etwas anderes script gefunden..und das hier ist nun dabei rausgekommen, nachdem ich es etwas nach meiner Site angepasst habe! Wiegesagt es funktioniert alles bis auf die "Home" Seite, da wird leider noch nix gehighlighted.
ZitatAlles anzeigen
<div id="menu">
<ul>
<li class="page_item <?php if (is_page('home')) { echo "current_page_item"; }?>"><a href="http://localhost:8888/givhimglory/">home</a></li>
<li class="page_item page-item-35 <?php if (is_page('skills')) { echo "current_page_item"; }?>"><a href="http://localhost:8888/givhimglory/?page_id=35">skills</a></li>
<li class="page_item page-item-48 <?php if (is_page('contact')) { echo "current_page_item"; }?>"><a href="http://localhost:8888/givhimglory/?page_id=48">kontakt</a></li></ul>
</div> -
ah super es tut sich was :-)
allerdings klappt das mit dem active noch nicht, nur hover geht!Kann es sein, dass in der "page.php" noch was getan werden muss.. ?!
danke aufjedenfall schonmal für die großartige hilfe, ich denke wir sind ganz dich dranne :)
-
kann es sein das ich bei den anderen styleangaben noch irgendwas entfernen muss? es funktioniert nämlich auch so nicht.. :-(
das ganze sieht also so nun aus:
ZitatAlles anzeigen
li.page-item-48 a:hover, li.page-item-48 a:focus, li.page-item-48 a:active {
background-color : #000;
color : #fff;
}/* This styles the unordered list element to remove bullets and align the text */
ul#nav {
list-style-type : none;
text-align : right;
}/*
This styles the links. It’s a block-level link and the text is positioned
with padding. Other styles are defined: width, colors, text attributes, etc.
*/
ul#nav a, ul#nav a.rss {
background-color : #d3d3a7;
padding : 15px 5px 2px 10px;
margin-bottom : 10px;
width : 180px;
height : auto;
color : #333;
font-weight : bold;
font-style : normal;
display : block;
text-decoration : none;
}/* This gives the “rss” class link a background image */
ul#nav a.rss {
background : #d3d3a7 url(images/rss.jpg) no-repeat 2px 2px;
}/* This is only necessary for IE6 else the link margins will collapse on hover */
ul#nav li {
margin-bottom : 10px;
}/* This removes the default left margin (indentation) */
ul#nav li {
margin-left : 0;
float:left;
}/*
Now to offer some hover and focus styles. Further specification of focus/active styles
could be added but I didn’t do it in this example. I didn’t feel it was needed
*/
ul#nav a:hover, ul#nav a:focus, ul#nav a:active {
background-color : red;
color : #fff;
}/* This offers up a hover/focus state image for the “rss” class link */
ul#nav a.rss:hover, ul#nav a.rss:focus {
background : #669900 url(images/rss_on.jpg) no-repeat 2px 2px;
}/*
This style the single state of the “current_page_item” class link. Not needed for
the “rss” class link since that target page won’t display the menu
*/
ul#nav li.current_page_item a, ul#nav li.current_page_item a:hover,
ul#nav li.current_page_item a:focus, ul#nav li.current_page_item a:active {
background-color : #9e9e55;
color : #fff;
cursor : default;
text-align : left;
float:left;
} -
stimmt du hast recht, im quellcode steht nun folgendes:
ZitatAlles anzeigen<ul id="nav">
<!--See Note 2-->
<li class="current_page_item">
<a href="http://forum.wordpress-deutschland.org/view-source:ht…88/givhimglory/" title="You are Home">Blog Navigation</a>
</li>
<!--See Note 3-->
<li class="page_item page-item-48"><a href="http://forum.wordpress-deutschland.org/view-source:ht…ory/?page_id=48" title="Contact">Contact</a></li>
<li class="page_item page-item-35"><a href="http://forum.wordpress-deutschland.org/view-source:ht…ory/?page_id=35" title="Skills">Skills</a></li></ul>
habe jetzt probiert am bsp "48" das ganze anzusprechen, allerdings ohne erfolg.. was mach ich verkehrt?
Zitat.page_item page-item-48 a:hover, .page_item page-item-48 a:focus, .page_item page-item-48 a:active {
background-color : #000;
color : #fff;} -
hmm.. und wie soll ich die seiten im css ansprechen, wenn sie im quelltext selbst nirgends definiert sind?
-
Hallo!
Ich bin gerade dabei aus meiner Seiten Navigation ein vollständiges Menu mit Grafiken, Active Funktion und allem drum und dran zu machen.genauer gesagt habe ich dieses tutorial nachgebaut..
Soweit so gut, meine "Seiten" werden erkannt und auch "gehighlighted" wenn ich drauf bin!
Ich würde das ganze jetzt aber mit verschiedenen Grafiken für jede "Seite" haben!
Meine Navi sieht also so aus: Home - Skills - ContactScreenshot von Navi, wie sie später aussehen soll:
[Blockierte Grafik: http://www2.pic-upload.de/08.12.09/6sn9dzylxzqa.jpg]Jede Seite soll eine andere Hover/Active Grafik bekommen und genau das ist das Problem, welches ich probiere zu lösen. Wie weise ich meinen Seiten unterschiedliche Klassen (Grafiken) zu??
Hier der Code für die header.php
HTML
Alles anzeigen<!--See Note 1--> <ul id="nav"> <!--See Note 2--> <?php if(is_home() && !is_paged()){ ?> <li class="current_page_item"> <a href="<?php echo get_settings('home'); ?>" title="You are Home">Blog Navigation</a> </li> <?php } else { ?> <li> <a href="<?php echo get_settings('home'); ?>" title="Click for Home">Blog Home</a> </li> <?php } ?> <!--See Note 3--> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul>..und hier der Code für die CSS:
HTML
Alles anzeigen/* This styles the unordered list element to remove bullets and align the text */ ul#nav { list-style-type : none; text-align : right; } /* This styles the links. It’s a block-level link and the text is positioned with padding. Other styles are defined: width, colors, text attributes, etc. */ ul#nav a, ul#nav a.rss { background-color : #d3d3a7; padding : 15px 5px 2px 10px; margin-bottom : 10px; width : 180px; height : auto; color : #333; font-weight : bold; font-style : normal; display : block; text-decoration : none; } /* This gives the “rss” class link a background image */ ul#nav a.rss { background : #d3d3a7 url(images/rss.jpg) no-repeat 2px 2px; } /* This is only necessary for IE6 else the link margins will collapse on hover */ ul#nav li { margin-bottom : 10px; } /* This removes the default left margin (indentation) */ ul#nav li { margin-left : 0; float:left; } /* Now to offer some hover and focus styles. Further specification of focus/active styles could be added but I didn’t do it in this example. I didn’t feel it was needed */ ul#nav a:hover, ul#nav a:focus, ul#nav a:active { background-color : #669900; color : #fff; } /* This offers up a hover/focus state image for the “rss” class link */ ul#nav a.rss:hover, ul#nav a.rss:focus { background : #669900 url(images/rss_on.jpg) no-repeat 2px 2px; }