Support » Themes and Templates » Removing the underline in my links, how so?

  • 3 Point is my blog.

    Where the author name is, I want that not underlined, i’ve googled the hell out of it and i cant find anything helpful. Right now my code for that is:

    <div class=”post_header”>

    <h2 class=”titleh2″>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2> <?php if(function_exists(‘cmd_show_avatar’)){ cmd_show_avatar(); } ?><br><img src=””> <body bgcolor=”#ffffcc” link=”#85979d” vlink=”#85979d” alink=”#85979d”><font size=”2″><?php the_author_posts_link(); ?></body> at <?php the_time(‘g:i’) ?><?php the_time(‘A’) ?></font></div><div class=”categories”><img src=””> Posted under: <?php the_category(‘, ‘) ?>

    I realize I can plug whatever code into the style.css, the only problem is when I was told to do that once from a site I googled and used the DIV CLASS code, it inserts a paragraph break. I want everything to stay in the same format I have now, just the author link NOT underlined.

    Im sure this is easy, im sure its in my face, but i stayed up extremely late working on the site so my brain isnt working 100% right now.


Viewing 6 replies - 1 through 6 (of 6 total)
  • To remove all underlining, plop this into your CSS:


    To remove underlining only on links in the post headers, use this:

    .post_header a{text-decoration:none;}

    That code will affect both the author’s name and the post’s title. To change only the name and NOT the post title, use this instead:

    .post_header a{text-decoration:none;}
    .post_header h2 a{text-decoration:underline;}

    Whichever you pick, put it at the end of style.css (so it overrides any previous style declarations).

    Incidentally, you’ve got some validation issues, so your site might look (unpredictably) different depending on which browser (and browser version) you use.

    Thanks. 989 errors is to much for me to fix and I can promise you that 90% of that is theme problems because I’ve only added and moved around and few codes. If I get complaints i’ll look into it. When im not as sick, therefore, not as lazy, ill download some other browsers and test it.

    do i need to change anything in the php file? nothing is changing for me

    No, you don’t need to change the PHP, just style.css.

    I search your CSS, but don’t find .post_header a in it anywhere. I suppose that would explain why nothing has changed?

    you were helping me on wordpress support site. someone in firefox says its screweing up.

    im not sure how to fix this. like i said, any problems are theme problems. looks like i may have to switch themes if this is the case because i have no idea how to fix that. any help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing the underline in my links, how so?’ is closed to new replies.