Network Theme: Making Front Page Featured Images Clickable

How do you make the "featured images" that show up on the Front Page posts clickable to the post's URL?

  • DavidM

    Hi signy,

    Good question and I could have sworn they were clickable. If there's no featured image assigned to a post it uses a default image which is clickable.

    In any case, I went through the theme files and found the code used to render that area on line 470 of /network/library/functions/custom-functions.php which by default reads as follows:
    <img src="<?php bloginfo('template_directory'); ?>/library/functions/timthumb.php?src=<?php echo $thumbnail; ?>&h=108&w=227&zc=1&multisite=false&blogdirid=<?php echo $blog; ?>" alt="" style="width:227px; height: 108px;" />

    You can replace that line with the following to get the featured images to be clickable:
    <div class="thumb"><a href="<?php echo $thispermalink; ?>"><img src="<?php bloginfo('template_directory'); ?>/library/functions/timthumb.php?src=<?php echo $thumbnail; ?>&h=108&w=227&zc=1&multisite=false&blogdirid=<?php echo $blog; ?>" alt="" style="width:227px; height: 108px;" /></a></div>

    If you're using Multisite, you'll want to replace line 461 exactly the same way (line 470 and 461 are both the same).

    I'll also mention this adjustment to the theme developer to see if this can be easily included in future versions.

    Hope that helps!

    -David

  • aecnu

    Greetings Mike!

    Please feel free to open your own ticket but of course you are delving into custom coding which is not within the scope of the support we provide here and the person whom supplied the code is long gone and the code was from a long time ago (relatively) not to mention the developer is no longer with us.

    Therefore it would be cool to give the new coder a shot at an answer for us.

    Have a GREAT weekend in any event.

    Cheers, Joe

  • Mike Price

    whatever..im getting tired of hearing that custom coding isn't within the scope of support here because that isn't quite true. there are many great staff members that gladly provide snippets of code when it relates to your plugins and themes.

    Furthermore, I am not looking for custom coding just a simple thing such as images being clickable on a home page which should be already supported by this particular theme considering the default images ARE clickable on this theme.

    Anyway, opening a new ticket on this is a waste of time and is a bit unnecessary considering there is already a ticket open with this and would seem more work for everyone on your staff to have multiple tickets being opened for the same issue. Older tickets have much more details on the subject matter and most of the time new threads require a link to a previous thread to further comprehend the issue.

  • aecnu

    Greetings Mike!

    Thank you for your additional input and feedback which is certainly appreciated.

    What am I to do then?

    "Custom coding is beyond the scope of the support we provide here though we do try to help if we can" - those occasional snippets you referred to was the though we do try to help if we can portion of the statement.

    To know the answer for the member and to withhold it would not be right even if it is custom coding? So if we do know the answer and share the answer, we are then obligated to answer all and/or resolve all?

    there are many great staff members that gladly provide snippets of code when it relates to your plugins and themes.

    That is correct just like I have too many times to count when I have the answer or know how to get the answer.

    I am not a coder - not a single support staff member is a coder - though we all are developers to including you as well. If I do not know the answer, where is this coding snippet going to come from? I am supposed to custom code it myself though I have not a clue where to begin?

    Now that my rhetoric is out of the way and addressing the item directly - the information in my last post was critical in what it says and the facts of the case.

    This is an old ticket with a code snippet in it from days gone past, developers gone past, support staff gone past - and this should have actually been made into a feature request long ago and the previous theme lead developer code it in.

    You are spot on with this 110% in my opinion ...

    images being clickable on a home page which should be already supported by this particular theme

    And this is what the new ticket and feature request should be about.

    The two paragraphs above is why I mentioned a new ticket it would be cool to give the new coder a shot at an answer for us - The new theme developers have proven to be responsive and I thought it was in your best interest and other members best interest to make a new ticket with the heart of the matter in it and it would be turned into a feature request that would appear to be popular.

    And though I am not psychic I am familiar with human behavior - meaning it is entirely possible the new developer just offers some more code snippets or an adjustment to the current snippet - but as the previous lead developer did not do i.e. code it in.

    Rather then cloud the new lead developers mind with the items of that past that have to date not proven to be permanent - lets see if we can get this item addressed properly and permanently with the hopes of a fresh attitude would fix this right up for us in a new release/version.

    Have a GREAT weekend Mike!

    And what is the link to that new ticket so I can see if it was put in as a feature request as it applicably should be?

    Let me know.

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.