• Resolved Miguelito87

    (@miguelito87)


    Hi! Love the theme, nice clean look! It’s pretty awesome for photographic work, but I want to tweak it just a little bit further to get the most out of it for my work. I’d like to know the following:

    Is it possible to widen the images in blog posts to match the width of the featured image at 750x (and of course, how-to) instead of 648x?

    Also: is it possible to make the featured image clickable like the other images in the blog post so it can also be viewed in a lightbox?

    Thanks for creating this theme, can’t wait until I get the website up and running to showcase the photographic work of my friends and myself! Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Silkalns

    (@silkalns)

    1. Making images to get out of the regular content area is tricky and is way out of scope of free support. If theme wouldn’t be responsive it would be much easier but now you have to get images out of the content area and still have to align to it to all mobile device screen sizes. It is doable but not an easy task.

    2. To make featured images to work in Lightbox you should replace this code in content-single.php and content.php (first one is to make them work in single post view and second one to make it work in blog page)

    <?php the_post_thumbnail( 'sparkling-featured', array( 'class' => 'single-featured' )); ?>
    with

    <?php
    		if ( has_post_thumbnail()) {
    		   $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
    		   echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >';
    		   the_post_thumbnail( 'sparkling-featured', array( 'class' => 'single-featured' ));
    		   echo '</a>';
    		}
    	?>

    All this code does it adds link to full sized image, so Lightbox can pick it up.

    Thread Starter Miguelito87

    (@miguelito87)

    Thanks man, worked like a charm! I’ll leave the image width as it is, not worth screwing shit up for something minor as that. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Width of images’ is closed to new replies.