If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #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!



    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>";


    • This reply was modified 2 years, 10 months ago by  Ismael.

    Hey Ismael,

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



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



    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.