WordPress.org

Ready to get started?Download WordPress

Forums

How to make my post titles linked to its pages (14 posts)

  1. san
    Member
    Posted 3 years ago #

    Hi, I'm using afterburner theme and in my blog the title of any of my post are not clickable i.e. it is not linked to post pages...so how do i fix it?
    please help me out.
    check out http://sandeshmmalla.com.np/blog/

  2. MichaelH
    Member
    Posted 3 years ago #

    Take an example from the WordPress Default Kubrick theme and use something like this:

    <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>

    Related:
    Stepping Into Templates
    Template Tags

  3. san
    Member
    Posted 3 years ago #

    Hmm,
    How do i do it then? is it possible that you make it more simple please?

  4. MichaelH
    Member
    Posted 3 years ago #

    Try changing to the WordPress Default theme.

    If you continue this thread, please report a link to download the theme you are using.

  5. san
    Member
    Posted 3 years ago #

    I want to make this happen while using this theme.
    If u can find any solution here is the link:
    http://www.rockettheme.com/wordpress-themes/afterburner

  6. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    Afterburner is a Theme distributed by RocketTheme, a commercial Theme development shop, and whose support offerings you should consult for support specific to this Theme.

    But for the general answer, @MichaelH already answered the question. You need to find the appropriate Theme template file that outputs the Post Title, and make the modification that MichaelH suggested.

  7. san
    Member
    Posted 2 years ago #

    :( so sad

  8. MichaelH
    Member
    Posted 2 years ago #

    Okay, in that theme's index.php change this:

    <h1><?php the_title(); ?></h1>

    to

    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>

    Marking this resolved.

  9. san
    Member
    Posted 2 years ago #

    I changed the line. Still the same, didn't work.:(
    check out http://sandeshmalla.com.np/blog/

  10. MichaelH
    Member
    Posted 2 years ago #

    Oops sorry, that was the showcase post.

    Later in that file I changed

    <h2 class="contentheading"><?php the_title(); ?></h2>

    to

    <h2 class="contentheading"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    But by now you are seeing what it takes to make a title be a link, so if there are other places in that theme where the title is not linkable you have the basis to change it.

    Please review the following articles:
    Stepping Into Templates
    Template Tags
    Template Hierarchy

  11. san
    Member
    Posted 2 years ago #

    I don see this working too.
    still the title is not linked to any

  12. MichaelH
    Member
    Posted 2 years ago #

    Sorry it doesn't work for you...works for me.

    Please consider taking Chip's advice and asking at the theme's forum as they will have more insight into their theme.

  13. san
    Member
    Posted 2 years ago #

    Did it work for you in the same theme?

  14. san
    Member
    Posted 2 years ago #

    Its very disappointing not being able to resolve

Topic Closed

This topic has been closed to new replies.

About this Topic