WordPress.org

Ready to get started?Download WordPress

Forums

Changing color of links only on the front page (5 posts)

  1. hpgray
    Member
    Posted 1 year ago #

    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?

  2. tiaanswart
    Member
    Posted 1 year ago #

    can we have a link to the site please?

  3. hpgray
    Member
    Posted 1 year ago #

    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!

  4. tiaanswart
    Member
    Posted 1 year ago #

    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

  5. hpgray
    Member
    Posted 1 year ago #

    Thanks! I am going to give that a shot!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.