Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29645

    Hi there!

    is there a possibility to edit the picture size in single post pages?? – Or to add a lightbox for the picture??

    Here is the example: http://seegers-fotografie.de/igelkopf/

    I need your help!

    #141272

    Hey,

    You can edit includes > helper-post-format.php, find this code on line 188:

    $prepend_image = '<div class="avia-post-format-image">'.$prepend_image."</div>";

    Replace it with this:

    $image_link = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
    			$prepend_image = '<div class="avia-post-format-image"><a href="'.$image_link.'">'.$prepend_image."</a></div>";

    Regards,
    Ismael

    • This reply was modified 11 years, 2 months ago by Ismael.
    #162110

    Hey Ismael,

    thank you for you help!
    I changed the code, cleaned all caches but there are no changes.

    #162778

    Hey,

    Are you using the “Image” post format? It should open the image on lightbox.

    Regards,
    Ismael

    #162791

    okay, thank you!
    Now it works!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Edit size of picture in single post page’ is closed to new replies.