Results 1 to 8 of 8

Thread: Adding a Link to the Main Photo

  1. #1
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts

    Question Adding a Link to the Main Photo

    After reading a support request I decided it was probably good to post this as a nice mod for everyone.

    Open on the file (\includes\theme-functions.php)

    Find:
    Code:
    $iarray = wp_get_attachment_image_src($image->ID, $size, $icon = false);
    $img_check = '[img]'.$iarray[0].'[/img]';
    Replace with:
    Code:
                  $iarray = wp_get_attachment_image_src($image->ID, $size, $icon = false);
    			  $iarraylink = wp_get_attachment_image_src($image->ID, "full", $icon = false);
    			  $img_check = '<a title="Main Photo" rel="shadowbox[gallery]" class="ad-gallery" href="'.$iarraylink[0].'">';
                  $img_check .= '[img]'.$iarray[0].'[/img] </a>';
    ~ Seth Carstens, Sethmatics Inc.


  2. #2
    Veteran rodeoramsey's Avatar
    Join Date
    Jan 2010
    Location
    Ohio
    Posts
    277
    Thanks
    3
    Thanked 13 Times in 10 Posts

    Re: Adding a Link to the Main Photo

    You must be an AppThemes customer and logged in to view this response. Join today!
    ~Ramsey

  3. #3
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts

    Re: Adding a Link to the Main Photo

    You must be an AppThemes customer and logged in to view this response. Join today!
    ~ Seth Carstens, Sethmatics Inc.


  4. #4
    Member greencode's Avatar
    Join Date
    Aug 2009
    Location
    England
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Adding a Link to the Main Photo

    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Senior Member netpotion's Avatar
    Join Date
    Feb 2010
    Location
    United States
    Posts
    246
    Thanks
    30
    Thanked 13 Times in 10 Posts

    Re: Adding a Link to the Main Photo

    You must be an AppThemes customer and logged in to view this response. Join today!
    My Currently Live Sites
    ~ http://www.netpotion.com - Free Flash Gamez
    ~ http://www.picdepict.com - Free Image Hosting

  6. #6
    Veteran rodeoramsey's Avatar
    Join Date
    Jan 2010
    Location
    Ohio
    Posts
    277
    Thanks
    3
    Thanked 13 Times in 10 Posts

    Re: Adding a Link to the Main Photo

    You must be an AppThemes customer and logged in to view this response. Join today!
    ~Ramsey

  7. #7
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts

    Re: Adding a Link to the Main Photo

    You must be an AppThemes customer and logged in to view this response. Join today!
    ~ Seth Carstens, Sethmatics Inc.


  8. #8
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    ~ Seth Carstens, Sethmatics Inc.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)