in meiner CSS Datei gibt es einen stylsheet der folgendermaßen aussieht
- Code: Alles auswählen
#sidebars ul li ul li a {padding:2px 0px 2px 25px; background: url(images/sb-marker.gif) 13px 7px no-repeat;}
das heist, in allen allen Links die innerhalb einer Liste in einem sidebar element (Widgets meiner Wordpress installation benutzt er obigen stylesheet.
z.B. bei
- Code: Alles auswählen
echo "<li>{$before_tweet}{$text}{$before_timesince}<a href=\"" . esc_url( "http://twitter.com/{$account}/statuses/{$tweet_id}" ) . '> [' . str_replace( ' ', ' ', wpcom_time_since( strtotime( $created_at ) ) ) . " her]</a></li>\n";
Dieses blöde backgrund bild möchte ich aber nicht.
deshalb habe ich das CSS um die classe timesince erweitert.
- Code: Alles auswählen
#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.timesince {text-decoration:none; color:#c97e00; border: 0px;}
und meinen php code folgendermaßen um den teil class="timesince"
- Code: Alles auswählen
echo "<li>{$before_tweet}{$text}{$before_timesince}<a href=\"" . esc_url( "http://twitter.com/{$account}/statuses/{$tweet_id}" ) . '" class="timesince"> [' . str_replace( ' ', ' ', wpcom_time_since( strtotime( $created_at ) ) ) . " her]</a></li>\n";
trotzdem geht es nicht, das bild, die formatierung von dem link ohne timesince wird genommen.
Was habe ich falsch gemacht?
