Title: Link from thumbnail
Last modified: August 21, 2016

---

# Link from thumbnail

 *  Resolved [planetright](https://wordpress.org/support/users/planetright/)
 * (@planetright)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-from-thumbnail/)
 * First, Thank You for this great theme it may be just what I need.
    Question is:
   Can you link to a different URL from the thumbnail picture and text in the grid
   on the home page? I know its defeats the idea of a blog but I need to link to
   several resources outside my website directly from the home page. I tried modify
   the html and that works from the page post itself but not from the thumb/homepage.
   Thanks!

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

 *  [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-from-thumbnail/#post-4037474)
 * Off of the homepage? You will need to edit index.php and edit the anchor tag 
   href surrounding the thumbnail image
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-from-thumbnail/#post-4037477)
 * [@evan](https://wordpress.org/support/users/evan/) Herman – your helping out 
   here is really great, but PLEASE don’t advise people to modify theme files – 
   but to use a child theme for those kinds of changes…[http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 *  Thread Starter [planetright](https://wordpress.org/support/users/planetright/)
 * (@planetright)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-from-thumbnail/#post-4037482)
 * Thank You, I’m definitely not a php guru. But will editing the index.php make
   the anchor tag the same for all post then. I would like to have the option as
   some post will have post pages within the site but many won’t. I know this is
   a bit of custom work and I will research the codex as WPyogi suggests. I just
   need to find the solution to this.
    Thanks
 * Read up on child themes and makes sense to me! However still doesn’t solve my
   problem as I don’t know which code needs to be modified and made into child theme.
   I think `<a>” title=”<?php the_title_attribute(); ?>” >
    <?php the_post_thumbnail(‘
   wpstrapgrid-post-feature’); ?> </a>`
 *  Theme Author [Brian Harris](https://wordpress.org/support/users/zgani/)
 * (@zgani)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-from-thumbnail/#post-4037692)
 * Apologies for not being on hand to answer your query [@planetright](https://wordpress.org/support/users/planetright/).
 * At the moment as with all standard themes the thumbnail if linked would actual
   link out to the post permalink.
 * It is possible to link out to other urls but that require a bit of work than 
   just edit a file or two. The best option would be to add a metabox to the post
   edit screen where you can enter the desired url which will then be fed to the
   content file and wrapped around the thumbnail.
 * It is doable as long as you are comfortable with and know your way around php.
 *  Thread Starter [planetright](https://wordpress.org/support/users/planetright/)
 * (@planetright)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/link-from-thumbnail/#post-4037712)
 * Thank you for the direction. If I come up with anything I will post back. If 
   anyone else comes up with a solution please share. : )

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

The topic ‘Link from thumbnail’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/wp-strapgrid-lite/1.0.8/screenshot.
   png)
 * WP StrapGrid Lite
 * [Support Threads](https://wordpress.org/support/theme/wp-strapgrid-lite/)
 * [Active Topics](https://wordpress.org/support/theme/wp-strapgrid-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/wp-strapgrid-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/wp-strapgrid-lite/reviews/)

## Tags

 * [links](https://wordpress.org/support/topic-tag/links/)

 * 5 replies
 * 4 participants
 * Last reply from: [planetright](https://wordpress.org/support/users/planetright/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/link-from-thumbnail/#post-4037712)
 * Status: resolved