Link to home
Create AccountLog in
Avatar of jonathanduane2010
jonathanduane2010

asked on

Images on front page

Hi Guys,

On my website http://thedancingsoul.ie is there way of changing the css of  images below of all the different peoples faces so that they dont look so square and they dont look so oversized and fit properly??
Avatar of Rob
Rob
Flag of Australia image

How do you want them to look if not square?

All the images are the same size so to make them look better you'll need to retake the photos or add more background to the images via layering using photoshop etc
Avatar of jonathanduane2010
jonathanduane2010

ASKER

Can i make them bigger on the front page, if you click on each image and it will bring you to a post and you will see they look fine there,
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I am not too sure, i think is the single portfolio.php

<?php get_header(); ?>
		
		<?php
			
				if(have_posts()) 
					while(have_posts()): 
						the_post();
			?>	
		
		
		<div class="bread-crumbs"><?php echo of_get_option('bread_crumb'); ?> <a href="<?php echo site_url(); ?>"><?php _e('Home','progressionstudios'); ?></a> &rsaquo; <?php echo $post->post_title; ?></div>
		
		
		<div class="content-container">
			
			
			<div class="page-content">
				
				
				<?php if(of_get_option('portfolio_pagination_nav', 'yes') == 'yes'): ?>
				<ul class="sub-pagination">
					<li><?php previous_post_link( '%link', __( '&lsaquo; Previous', 'progressionstudios' ) ); ?></li>
					<li><?php next_post_link( '%link', __( 'Next &rsaquo;', 'progressionstudios' ) ); ?></li>
				</ul>
				<?php endif; ?>
					
					
					
				<h1 class="page-title"><?php the_title(); ?></h1>
				
				<div class="portfolio-single">
			
					<?php if(of_get_option('portfolio_single_style', 'full') == 'full'): ?>
					
					<!-- START AnythingSlider -->
					<ul id="slider">
						
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_2', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
								
								
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_2');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, 'height="510"', $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, 'width="900"', $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;
								?>
							

							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_3', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
								
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_3');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, "height='510'", $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, "width='900'", $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;										
								?>
								

							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_4', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
							
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_4');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, "height='510'", $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, "width='900'", $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;										
								?>
							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_5', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
							
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_5');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, "height='510'", $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, "width='900'", $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;										
								?>
							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						
						<?php if(get_post_meta(get_the_id(), 'pyre_remove_featured_image', true)): ?>
						
						<?php else: ?>
						
						<?php
						$args = array(
						    'post_type' => 'attachment',
						    'numberposts' => '-1',
						    'post_status' => null,
						    'post_parent' => $post->ID,
							'orderby' => 'menu_order',
							'order' => 'ASC'
						);
						$attachments = get_posts($args);
						if($attachments):
						    foreach($attachments as $attachment):
						?>
						
						<?php $image = wp_get_attachment_image_src($attachment->ID, 'full'); ?>
						<?php $image_2 = wp_get_attachment_image_src($attachment->ID, 'portfolio-single'); ?>
						
						<li>
							<a href="<?php echo $image[0]; ?>" rel="prettyPhoto[gallery1]" title=""><img src="<?php echo $image_2[0]; ?>" alt="<?php echo $attachment->post_title; ?>" /></a>
						</li>
						
						<?php endforeach; endif; ?>
						
						<?php endif; ?>
						
					</ul>
					
					<script type="text/javascript">
					jQuery(document).ready(function($) {
						$('#slider').anythingSlider({
							delay               : <?php echo of_get_option('portfolio_speed', '3500'); ?>,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
							animationTime       : <?php echo of_get_option('portfolio_transition', '400'); ?>,       // How long the slideshow transition takes (in milliseconds)
							buildArrows         : <?php echo of_get_option('portfolio_arrows', 'false'); ?>,      // If true, builds the forwards and backwards buttons
							buildNavigation     : true,      // If true, buildsa list of anchor links to link to each panel
							autoPlay            : <?php echo of_get_option('portfolio_timer', 'true'); ?>,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
							hashTags            : false,      // Should links change the hashtag in the URL?
							resizeContents      : true,
							addWmodeToObject    : 'transparent',
							startStopped        : false,     // If autoPlay is on, this can force it to start stopped
							pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
							resumeOnVideoEnd    : true      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
						});
					});
					</script>
					
					
					<div class="portfolio-details"><?php _e('by','progressionstudios'); ?> <?php echo  the_author_posts_link(); ?> <?php _e('on','progressionstudios'); ?> <?php the_time('F d, Y'); ?></div>

					<?php the_content(); ?>
					
					<?php else: ?>
					
					
					<div class="alignright">
					
					<!-- START AnythingSlider -->
					<ul id="slider-2">
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_2', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
								
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_2');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, "height='280'", $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, "width='500'", $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;										
								?>
								
								

							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_3', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
							
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_3');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, "height='280'", $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, "width='500'", $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;										
								?>
							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_4', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
							
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_4');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, "height='280'", $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, "width='500'", $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;										
								?>
							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						<?php if(get_post_meta(get_the_id(), 'pyre_video_embed_link_5', true)): ?>
							<!-- SLIDE OPEN -->
							<li>
							
								<?php
								$values = get_post_custom_values('pyre_video_embed_link_5');
								$pattern = "/height=\"[0-9]*\"/";
								$values = preg_replace($pattern, "height='280'", $values);
								$pattern = "/width=\"[0-9]*\"/";
								$values = preg_replace($pattern, "width='500'", $values);
								$shortcode_output = do_shortcode($values[0]);
								print $shortcode_output;										
								?>
							
							</li>
							<!-- END SLIDE -->
						<?php endif; ?>
						
						
						<?php if(get_post_meta(get_the_id(), 'pyre_remove_featured_image', true)): ?>
						
						<?php else: ?>
						
						<?php
						$args = array(
						    'post_type' => 'attachment',
						    'numberposts' => '-1',
						    'post_status' => null,
						    'post_parent' => $post->ID,
							'orderby' => 'menu_order',
							'order' => 'ASC'
						);
						$attachments = get_posts($args);
						if($attachments):
						    foreach($attachments as $attachment):
						?>
						
						<?php $image = wp_get_attachment_image_src($attachment->ID, 'full'); ?>
						<?php $image_2 = wp_get_attachment_image_src($attachment->ID, 'portfolio-single-2'); ?>
						
						<li>
							<a href="<?php echo $image[0]; ?>" rel="prettyPhoto[gallery1]" title=""><img src="<?php echo $image_2[0]; ?>" alt="<?php echo $attachment->post_title; ?>" /></a>
						</li>
						
						<?php endforeach; endif; ?>
						
						<?php endif; ?>
						
					</ul>
					
					
					<br/>
					<div class="clearfix"></div>
					</div><!-- close .alignright -->
				
					<script type="text/javascript">
					jQuery(document).ready(function($) {
						$('#slider-2').anythingSlider({
							delay               : <?php echo of_get_option('portfolio_speed', '3500'); ?>,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
							animationTime       : <?php echo of_get_option('portfolio_transition', '400'); ?>,       // How long the slideshow transition takes (in milliseconds)
							buildArrows         : <?php echo of_get_option('portfolio_arrows', 'false'); ?>,      // If true, builds the forwards and backwards buttons
							buildNavigation     : true,      // If true, buildsa list of anchor links to link to each panel
							autoPlay            : <?php echo of_get_option('portfolio_timer', 'true'); ?>,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
							hashTags            : false,      // Should links change the hashtag in the URL?
							resizeContents      : true,
							addWmodeToObject    : 'transparent',
							startStopped        : false,     // If autoPlay is on, this can force it to start stopped
							pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
							resumeOnVideoEnd    : true      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
						});
					});
					</script>
					
					
					
					<div class="portfolio-single-small-left">
					<div class="portfolio-details"><?php _e('by','progressionstudios'); ?> <?php echo  the_author_meta('user_nicename',$post->post_author); ?> <?php _e('on','progressionstudios'); ?> <?php the_time('F d, Y'); ?></div>
					
					<?php the_content(); ?>
					
					
					</div>
					
					<?php endif; ?>
					
					<div class="clearfix"></div>
					<hr/>
					
					<div class="portfolio-tags"> 
						
							<?php
								echo get_post_meta(get_the_id(), 'pyre_video_embed_link', true);
							 echo get_the_term_list( $post->ID, 'type', __( '<strong>Tags</strong>: ', 'progressionstudios' ), ', ', '' ); 
								// Fetch tags of this post, and show them one by one.
							/*	$posttags = get_the_tags(); 
								if($posttags) //to avoid errors when there are no tags for a post.
								$counterx=0;
								foreach($posttags as $tag)
								{
									echo '<a href="'.get_tag_link($tag->term_id).'" alt="'.$tag->name.'" title="'.$tag->name.'">'.$tag->name.'</a>';
									if(!$counterx)
										echo ', ';
									$counterx++;
								}	*/
							
							?>
					</div>
					
			
					
					<div class="social-networking-portfolio">
						<?php if(of_get_option('googeplus_icon', 'yes') == 'yes'): ?>
						<div class="google-plus">
							<!-- Place this tag where you want the +1 button to render -->
							<g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
							<!-- Place this render call where appropriate -->
							<script type="text/javascript">
							  (function() {
							    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
							    po.src = 'https://apis.google.com/js/plusone.js';
							    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
							  })();
							</script>
						</div>
						<?php endif; ?>
						
						<?php if(of_get_option('twitter_icon_button', 'yes') == 'yes'): ?>
						<div class="twitter-button"><a href="https://twitter.com/share" data-url="<?php the_permalink(); ?>" data-text="Check out this site" class="twitter-share-button" target="_blank">Share on Twitter</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
						<?php endif; ?>
						
						<?php if(of_get_option('facebook_icon_button', 'yes') == 'yes'): ?>
						<div><a name="fb_share" type="button_count"  share_url="<?php the_permalink(); ?>" target="_blank">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
						<?php endif; ?>
						
						<?php if(of_get_option('facebook_like_button', 'yes') == 'yes'): ?>
						<div><iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&amp;layout=button_count&amp;show_faces=true&amp;width=90&amp;action=like&amp;colorscheme=light&amp;height=23" scrolling="no" allowtransparency="true" frameborder="0" style="border:none; overflow:hidden; width:85px; height:23px; background:transparent; margin-right:-15px;"></iframe></div>
						<?php endif; ?>
					</div><!-- close .social-networking-portfolio -->
					
					
					<div class="clearfix"></div>
					
					
					
					<?php if(of_get_option('portfolio_comments', 'yes') == 'yes'): ?>
					
					
					<!-- if comments for portfolio -->
					<hr>
					
					<div id="comments">
						
						<?php comments_template(); ?>
						

					</div><!-- #comments -->
					
					<?php endif; ?>
					
					
					
					
					
				</div><!-- close .portfolio-single -->
	
			</div><!-- close .page-content -->
			
			
			
			
			<div class="clearfix"></div>
				
			
		</div><!-- close .content-container -->
		
		<div class="content-container-base-pagination">
			
		</div><!-- close .content-container-base or .content-container-base-pagination -->
		
			<?php
				endwhile;
			?>
	
<?php get_footer(); ?>

Open in new window

Just looking at the markup, there seem to be multiple versions of the image at different resolutions.  Is this correct?
http://www.thedancingsoul.ie/wp-content/uploads/2013/11/

Shows there are multiple versions of the same image at different resolutions
so how can i make the ones on that page show at a diff resolution??
It's the grid Plugin your using on that front page to display them. I'll also look through your template
Looks like you've fixed it?
yes! thank you for your help!
Did any of the comments help? otherwise please post how you got your solution and accept that as the answer. I'd like to know how you got there! :-)
Hi Rob, there seemed to be a setting in the template buried away, that let me adjust the images set on that page so seeing as you mentioned it looked like a template issue, i think you deserve the points :)
Thanks Jonathon