“How to change color of ‘Continue reading…’ link?”?
Such simple – hahaha ;) – question made me almost mad. I mean, I thought solving that problem would be piece of cake. I was wrong.
I tried to create different class’ or ID’s in style.css and then add tags to ‘Continue Reading…’ but either it gave no result or results weren’t as I expected (like blank page when I put code outside ' ' instead of inside OR red color of ALL links). Actually I decided to give up.
But this morning I was studying really good website on CSS ( unfortunately in Polish ;) ) and… taaadam! I was struck by lightning -> solution so simple that simpler one just simply doesn’t exist.
Forget about style.css and add styling straight in place you need it!
So code which looked like this:
<?php the_content('Continue Reading »'); ?>
Now looks like that:
<?php the_content('<span style="color: #b3aef8">Continue Reading »</span>'); ?>
And if you want to read the end of that story just press that beautiful bluish ‘Continue reading…’ link :D
That was all. Hope you aren’t disappointed ;).
11th July 2007 2 comments





No właśnie wstawianie stylu bezpośrednio w kod strony, choć poprawne, nie jest zalecane. W zasadzie to ma same wady
Pierwsze podejście było lepsze. Nawet WP nadaje temu linkowi klase more-link. Także wystarczy dodać w style.css:
.more-link { color:#990000; }ps. mam nadzieję, że nie przeszkadza komentowanie po polsku.
Teraz też już to wiem
.
Zaraz po tym jak opublikowałam moje rozwiązanie twórca theme podał swoje: