WordPress.org

Support

Support » How-To and Troubleshooting » Changing color of links only on the front page

Changing color of links only on the front page

  • I have a bunch of links on the front page. They are in a footer sidebar and I would like to change the color of these links, but NOT the links on the whole website. Thoughts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • tiaanswart

    @tiaanswart

    can we have a link to the site please?

    http://www.cakeinthemorn.com

    The bottom links are all so dark with the dark background–I used to have them orange, but didn’t like the orange on all the other pages. So I changed ALL the links to blank, and now I can’t see these. I am looking to change them back to orange.

    They are all located in a widgetized footer, if that makes any difference. Thanks!

    tiaanswart

    @tiaanswart

    if you want to change all the links in one page to another color i would suggest adding the below code to your header.php file just after the stylesheet code:

    <?php if(is_home()); ?>
    
    <style>
    a:link, a:visited {
    	color: #ffffff;
    }
    
    a:hover {
    	color: #db7c00;
    }
    </style>
    
    <?php endif; ?>

    just change the colors in the code

    Thanks! I am going to give that a shot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing color of links only on the front page’ is closed to new replies.