My friend helped me use artisteer to generate the theme for my site.
On my site, http://viewofthedrew.com/, I don’t know how to change *just* the color of the comment link at the end of my posts (where it says “Please leave a comment, 1 Comment, or # Comments”)
I’ve done some code detective work [I’m very very new at this] and I learnt how to change the CSS styles of that entire area but I want the Comment link to be another color to stand out.
The text itself I found is controlled by the comments_popup_link portion in my functions.php file. The styling of that whole area is controlled by an area in my stylesheet.css called /* begin PostIcons, PostFooterIcons */.
Also is there any way to force that text to be all on the same line? Do I use one of those things?
You can’t make the text be all on the same line, because it could break the structure of the site or, most probably, overlap the sidebar. But you can reduce the text size if you really want it to occupy just one line.
Going back to your first question, there’s a little problem with changing the color just on the comments’ link. There’s no CSS class assigned to that little piece of code, but we can add it if you want 🙂 Just add here that part of the code in your functions.php file you mentioned, and we’ll edit it together 🙂
In order to change the color you will need to add a div class tag around the comments. You’ll have to look in your template to correct this. Also, as Rodni said, the “leave a comment” already is on the same line but is being broken because of lack of space, if you reduce the font size size you’ll see it on one line (though you’ll have to keep tag count down).
Thanks so much. What I meant was that I wanted just the text “please leave a comment”, to not break up which I think I accomplished using non-breaking spaces. Or at least it seems to work, because now if there is not enough space it’ll go to the next line.
So forget that, let’s see if I can get this color thing to work.
For what I can see, we can work directly on the functions.php file. But if you want to do a better organized modification, I’ll be needing your loop.php file code, as well as your loop-page.php file code just in case.
I installed Artisteer and checked out the structure of the information in the files that program generates, and couldn’t find what I was looking for. Artisteer has a very different structure.
So I guess that leaves us with the other solution. But jrav001’s solution was incomplete and a little wrong, so here you have the one that will completely work for what you want to do. First repleace that piece of code you attached before in your functions.php file for this: