How To Change A Links Color In Wordpress

Discussion in 'CSS' started by webspider20, Oct 7, 2011.

  1. #1
    So here is my problem, I can't get my links to turn blue. I am wanting to change all my text links to #0000ff but I just can't figure out how.

    I am using the livewire theme and it is too complicated for me.

    Here is the CSS code that I think i have to add something too but I am not sure.


    /*=== Traditional Blog Post ===*/
    .post-alt{
    margin: 0 0 15px 0;

    }
    .post-alt h2{
    font-size: 20px;
    color:#000000;
    line-height: 24px;
    }
    .post-alt h3{
    font-size: 13px;
    padding-bottom: 5px;
    line-height: 18px;
    color: #000000;
    }
    .post-alt h4{
    font-size: 14px;
    padding-bottom: 5px;
    line-height: 16px;
    }
    .post-alt h3 a, .post-alt h2 a{
    color: #C82611;
    }
    .post-alt p{
    padding: 0 0 15px;
    }
    .post-alt h3.post_date{
    color: #000000;
    padding: 5px 0px 10px;
    font-size: 12px;
    font-weight: normal;
    }

    .page_header {
    margin-bottom:10px;
    }
    .continue{
    background: url(images/ico-arrow.gif) no-repeat left;
    font-weight:bold;
    padding-left: 15px;
    }
    .postmeta {
    font-size: 11px;
    font-weight: normal;
    padding: 5px;
    float:left;
    }
    .blog .postmeta, #featured .postmeta {
    width:363px;
    }
    .col1 .postmeta {
    width: 593px !important;
    }
    .postmeta a {
    color: #000000;
    font-size:11px;
    }
    .posted_in {
    float: left;
    text-align:left;
    padding-left:18px;
    background-image: url(images/ico-category.gif);
    background-repeat: no-repeat;
    background-position: left top;
    }
    .comments {
    float:right;
    text-align:right;
    }
    #comment {
    padding:0px;
    }
    .comments a{
    padding-left:18px;
    background-image: url(images/ico-comm.gif);
    background-repeat: no-repeat;
    background-position: left top;
    }
    p.more {
    margin:0px;
    padding-top:10px;
    text-align:right;
    clear:both;
    }

    p.more a{
    background: url(images/ico-arrow2.gif) no-repeat right;
    padding-right: 20px;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    }

    .navigation {
    }
    .navigation a {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    }
    .alignleft{
    display:inline;
    float:left;
    }
    .alignright{
    display:inline;
    float:right;
    }

    li.bypostauthor {
    /* CSS styles for author comments */
    background-color: #99C9FF !important;
    }
     
    webspider20, Oct 7, 2011 IP
  2. czent

    czent Peon

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    5
    Trophy Points:
    0
    #2
    You have these locations where Link color are defined.

    If you change those color: #C82611; and color: #000000; to color: #0000ff; should serve you good.

    .post-alt h3 a, .post-alt h2 a{
    color: #C82611;
    }

    .postmeta a {
    color: #000000;
    font-size:11px;
    }

    p.more a{
    background: url(images/ico-arrow2.gif) no-repeat right;
    padding-right: 20px;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    }

    .navigation a {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    }

    I think you mainly want to change the first two.
     
    czent, Oct 8, 2011 IP
  3. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    #3
    CSS always works whatever was the last setting that is applied, so if you set a new colour somewhere and then that setting is overwritten by another value that will be applied. I find the best way is to make a global statement: a{color:#000;} then for each area I want individual colours I would set accordingly like: #name a{color:#F36;}

    If you understand this then it will make your life easier when trying to change something that you didn't originally create.

    Glen
     
    HuggyEssex, Oct 10, 2011 IP
  4. yho_o

    yho_o Well-Known Member

    Messages:
    354
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    #4
    a { your css code for link here }
    a:visited { your css code for visited link here }
    a:hover { your css code for hovered link here }
    Code (markup):
    note: this will be applied for every <a> tag inside your theme, unless it has class or id
     
    yho_o, Oct 10, 2011 IP
  5. flithost

    flithost Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    just type css text-decoration:none;
     
    flithost, Oct 17, 2011 IP
  6. jopsons

    jopsons Active Member

    Messages:
    467
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Go to themes and click edit, go css style sheet section and edit there.
     
    jopsons, Oct 21, 2011 IP
  7. GeekAdda

    GeekAdda Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    a {#0000ff; } can help if your theme have an individual "a" CSS code
     
    GeekAdda, Oct 21, 2011 IP