• Resolved madonnafl

    (@madonnafl)


    I am familiar with CSS and what not, but I cannot for the life of me figure out how to control the color of certain links. I understand putting the “class” command in an [a] tag, but what do I do for the following tag:

    <?php wp_loginout(”,”); ?>

    I want to be able to control the color of this link separate from the other links. Is there a special reference code for these kinds of links?

    Thanks so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Your post doesn’t have any css-related tag or link, just a PHP call/statement. I must be missing something.

    Try posting a link to the page in question and describe one of the links whose color you want to change?

    Thread Starter madonnafl

    (@madonnafl)

    Hm… well, that particular PHP call/statement creates a log-in link on the page. So basically, I want to be able to control the color of the link that this PHP call/statement creates.

    Depending on where it is used, it will use the defined css properties there, and that’s where I would go to change the link colors.

    I may not be expressing myself well… Regardless of whether the link is static or dynamically generated, the color/style will be represented by the currently defined css. In the admin area it’s typically wp-admin/wp-admin.css, the theme’s css is usually defined in themes/(themename)/style.css. I use a few plugins that include their own .css file when called, as well.

    You can insert that ‘tag’ inside an html anchor with a class=myspeciallinkcolor but you’ll have to define ‘myspeciallinkcolor’ somewhere. That’s why I was asking for a page/link…

    Thread Starter madonnafl

    (@madonnafl)

    Ah, I finally figured out you need a plug-in for it. When you mentioned to look at the wp-admin stylesheet, it made me realize that there is no way to change it internally. I ended up scouring for and using the following plug-in to solve this dilemma:

    https://guff.szub.net/2005/01/27/add-link-attribute/

    Thanks so much for taking the time to read my post! Believe it or not, but your comments steered me in the right direction. Thanks again!

    *babbles incoherently*

    ;’)

    Yosemite – I know what you mean
    “whoosh”

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Controlling color of links’ is closed to new replies.