-
AuthorPosts
-
October 5, 2014 at 9:52 am #330415
Hi, on my blog view – http://photobek.wpengine.com/blog/ (hosted on WPengine) – every feature image that is shown above the title of a post is linking to the image and opens in a lightbox.
I would like the images to link to the post itself, same as the title. How can I do that?
Thanks.
October 5, 2014 at 9:55 pm #330589Interested in the same thing :)
October 5, 2014 at 10:02 pm #330597Go to Media Library and under the “Uploaded to” heading attach all unattached images to the pages or posts you want… It works for me :)
October 5, 2014 at 10:09 pm #330600Hi sdbroker,
Thank you for the reply, where can we find “Uploaded to” ? I went to Media Library, but unable to find “Uploaded to”
October 5, 2014 at 10:13 pm #330602Hey Courtney,
You are probably in the Grid view on the Media Library. Under the Media Library heading there are 2 icons, the one to the left is the List icon and the one to the right is the Grid icon. click the one to the left to see the images on a List. Then you’ll see the “Uploaded to” heading.
October 5, 2014 at 11:14 pm #330615Thank you for the detailed instructions :)
I found “Uploaded to” , and added to post to the image, unfortunately the image still opens up as a lightbox and doesn’t link directly to the post page…. darn… need the image to link directly to the post page..
October 6, 2014 at 7:42 pm #331114Hey Courtney,
If you use the Yoast SEO plugin you can easy redirect the images to the images to the post url under the Advanced tab while editing the image or you can add the post’s url in the image’s url box directly on the WordPress Media Library while editing the image. Hope that helps.
October 6, 2014 at 8:05 pm #331130i can not understand that because if you chose in Enfold options for blog-style the “Multi-Author-Blog”
than the image is linked to the single posthttp://www.guenterweber.com/entwurf/wp05/category/allgemein/
October 7, 2014 at 12:35 am #331236Thanks for the help guys, I tried the Yoast re-direct and the url…still no dice, it keeps on opening up as a lightbox :(
*I have the post set to image
For Blog: I have it set to Single Post with Big Preview.
October 8, 2014 at 2:42 am #332031Hi!
Thank you all for helping out. Sorry for the delay.
The blog overview page featured image should open the actual post when clicked. Do you mind if we take a look at the actual blog page? We would like to check it.
Regards,
IsmaelOctober 9, 2014 at 12:55 am #332810This reply has been marked as private.October 9, 2014 at 10:41 am #333086Hi!
@Courtney: You set the post format of How to get healthy skin at any age with celebrity dermatologist Dr. Zein Obagi to “Image”. That’s why it’s opening the featured image in a lightbox.
Best regards,
IsmaelOctober 9, 2014 at 1:17 pm #333182Hi :)
Thank you for looking into it,
I like the way “image” looks for the blog, is there anyway i can make the image link directly to the post from the News+Media page rather than open up as a lightbox?October 10, 2014 at 7:27 am #333708Hey!
Please add this on functions.php:
add_filter( 'post-format-image', 'avia_image_slideshow_filter_2', 10, 1 ); function avia_image_slideshow_filter_2($current_post) { $prepend_image = get_the_post_thumbnail(get_the_ID(), 'large'); $image = ""; if(!$prepend_image) { $image = avia_regex($current_post['content'],'image'); if(is_array($image)) { $image = $image[0]; $prepend_image = '<div class="avia-post-format-image"><img src="'.$image.'" alt="" title ="" /></div>'; } else { $image = avia_regex($current_post['content'],'<img />',""); if(is_array($image)) { $prepend_image = '<div class="avia-post-format-image">'.$image[0]."</div>"; } } } else { $large_image = get_the_permalink(get_the_ID()); $prepend_image = '<div class="avia-post-format-image"><a href="'.$large_image.'">'.$prepend_image."</a></div>"; } if(!empty($prepend_image) && is_string($prepend_image)) { if($image) $current_post['content'] = str_replace($image, "", $current_post['content']); $current_post['before_content'] = $prepend_image; $current_post['slider'] = ""; } return avia_default_title_filter($current_post); }
Best regards,
IsmaelOctober 27, 2014 at 11:42 pm #341855This reply has been marked as private.October 28, 2014 at 4:59 am #341980Hi!
Is the post set to Image post format? The purpose of the code is to set the link of the Image post format to go to the actual post instead of lightbox. Since you paid for the customization, you should probably get your money’s worth. Please contact the freelance developer. It does work on my installation.
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.