WordPress.org

Ready to get started?Download WordPress

Forums

Featured Image Problem (6 posts)

  1. TylerLawrence
    Member
    Posted 1 year ago #

    I have a website where I post funny pictures and I set the featured image and it takes them directly to the image itself. I want it to take them to the post!

    For an example Go to my website "Funniestshitonline.com"
    Click on an image then click on the title of the post. The title takes you to the post I want it to do the same if you click on the image.

    Someone Please Help me!
    Im using the theme Fable.

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    might be defined in the loop of the front page template of your theme;

    do you have a (free download) link to the theme?

  4. TylerLawrence
    Member
    Posted 1 year ago #

    Here Is The Link

    Yeah There is the link. Ive tried everything. The Front page idea I tried making it non clickable, Ive tried adding in the links separately but then decided for how many post i plan on doing every week I wouldn't be able to keep up so i just gave up on that idea.

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    try editing index.php of the fable theme, this line (occurs twice in line 21 and line 68 - this pastebin http://pastebin.com/v0cKXagV should help to locate the lines; edit both):

    echo ('<a href="'.$fullsrc[0].'" class="img"><img src="'.$thsrc[0].'" alt="" /></a>');

    and change it to:

    echo ('<a href="'.get_permalink($post->ID).'" class="img"><img src="'.$thsrc[0].'" alt="" /></a>');

    (untested)

  6. TylerLawrence
    Member
    Posted 1 year ago #

    Omg Thanks so much! You are a life saver!

Topic Closed

This topic has been closed to new replies.

About this Topic