Hyperlinking Titles In Blog Entries?

Discussion in 'Blogging' started by nocturnal_1, Feb 25, 2008.

  1. #1
    How do I hyperlink the titles in blog entries? I am using WP and I have a custom theme. Obviously it must be somewhere in the Theme Editor. I am not sure where I do this and what code I need to add in. If anyone could please tell me I would greatly appreciate it.
     
    nocturnal_1, Feb 25, 2008 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Put the following code in the loop.

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    Code (markup):
     
    mizaks, Feb 25, 2008 IP
  3. nocturnal_1

    nocturnal_1 Peon

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks once again, mizaks!

    But I have a new problem now... I can't get the title font size back to how it was before. The designer who sold me this template used a lot of style code in it.

    Here is the full code I have for it since adding your new code:

    <div align="left" style=" background-color:#ffefff; height:22px; vertical-align:middle;" class="td1" id="post-<?php the_ID(); ?>">
    &nbsp;<a class="a2" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    </div>
    Code (markup):
     
    nocturnal_1, Feb 25, 2008 IP
  4. banji

    banji Well-Known Member

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #4
    you should check your style.css and search the class :"a2". Edit there
     
    banji, Feb 26, 2008 IP
  5. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #5
    The title should be wrapped by an <h2> tag for SEO puposes...
     
    mizaks, Feb 26, 2008 IP
  6. nocturnal_1

    nocturnal_1 Peon

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks mizaks. Could you show me exactly where in the code I showed you, that I would put it? Because I have tried that and it isn't changing it.

    I also tried creating a new "a4" style class in Stylesheet and that doesn't work.
     
    nocturnal_1, Feb 26, 2008 IP