WordPress.org

Forums

[resolved] Stop Title Being Hyperlink? (4 posts)

  1. johanna_london
    Member
    Posted 6 years ago #

    Hi!
    In index.php I retrieve my post title into a table like below. I am very pleased with the table layout.

    I then try to format the actual title text (in style.css) to remain a hyperlink, but to have the same text colour as the rest of the text.

    But I just can't get it to work, although I know it is possible. The text remains purple (visited link) whatever I do! Please, can you help? What classes should I format, and how?
    I thought that the post_title:link etc would work..?
    Johanna

    from index.php:
    <!--Populate the Post Title -->
    <table border="0" cellspacing="0" cellpadding="0" width="98%">
    <tr><td colspan="3" class="post_title_date"> <?php the_time(_t('l jS F, Y')) ?></td> </tr>
    <tr> <td class="post_left_title_ico"> </td>
    <td class="post_title">
    <a class="post_title_text"
    href="<?php the_permalink() ?>"
    rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <?php the_title();?>

    </td>
    <td class="post_right_title_ico"> </td>
    </tr>
    </table>
    ====================================

  2. vkaryl
    Member
    Posted 6 years ago #

    You'll have to dig around in the style.css file for the a:visited, and change the color. If there isn't a color specified, then you need to specify it.

    Other than that, you may have to really use stylesheet specificity, but I can't help much since you're doing layout with tables. You'd have to do something like td a:visited and maybe add in a class too.... depends on what you've actually got in the stylesheet.

  3. johanna_london
    Member
    Posted 6 years ago #


  4. johanna_london
    Member
    Posted 6 years ago #

    That worked! Thanks vkaryl x!

    (I had to use the div class to apply the property to, but it turned out I had had a syntax error earlier.)

    I never had expected css&html to be this tricky - the positioning is insane. I had thought "Oh well I know programming, so I can learn it in no time" lol!!!!!!!!!!!!!! that did not happen ;-)

    For the record; I am NOT using tables for positioning. I only used it for that one header.

    And I just learnt that you the top function only "works" if you have applied the appropriate Position attribute.

    Oh well, my blog is a project for learning CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags