• I need help getting my thumbnails, and also the post title, link to the permalink. The title are now unclickable, and the thumbnails are set to enlarge itself in a lightbox.

    I make use of the Shaken Grid theme.
    Which is found here http://shakenandstirredweb.com/331/introducing-our-first-free-wordpress-theme-shaken-grid

    Can someone help me out on this one?
    To clear out;
    Im having a blog, the main page shows several boxes of posts. The posts contains some text and a thumbnail above it. The thumbnail needs to link to the full post. And the title has to do the same.

    Hope you can help me,
    Thanks in advance,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter peterpan01

    (@peterpan01)

    ^

    What you’ll need to do is edit loop.php (make a backup first!)

    Line 24 reads:

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

    This is what displays the title of a post.

    Change this to:

    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

    and this will link the title of the post to the individual post page.

    Post thumbnails are set to link to the large versions of the images, as per line 18 of loop.php:

    <a href="<?php echo wp_get_attachment_url($thumbID); ?>" rel="gallery" title="<?php the_title(); ?>">

    To change this to link to the individual post, change line 18 to:

    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">

    These steps will also need to be repeated with loop-category.php and loop-archive.php to change the links on category and other archive pages.

    Hope this helps!

    Tried this but it is still linking to the image thumbnail…http://theestesbunch.com/2011

    no plugins running at the moment…help?

    Thread Starter peterpan01

    (@peterpan01)

    Tried this but it is still linking to the image thumbnail…http://theestesbunch.com/2011

    no plugins running at the moment…help?

    It seems to be working nowat your website isn’t it?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Permalink my thumbnails & Title’ is closed to new replies.