Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

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??
0
jonathanduane2010
Asked:
jonathanduane2010
  • 8
  • 5
1 Solution
 
RobOwner (Aidellio)Commented:
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
0
 
jonathanduane2010Author Commented:
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,
0
 
RobOwner (Aidellio)Commented:
This will be to do with your template.. what are you using to display the front page?  more specifically the images?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jonathanduane2010Author Commented:
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

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

Shows there are multiple versions of the same image at different resolutions
0
 
jonathanduane2010Author Commented:
so how can i make the ones on that page show at a diff resolution??
0
 
RobOwner (Aidellio)Commented:
It's the grid Plugin your using on that front page to display them. I'll also look through your template
0
 
RobOwner (Aidellio)Commented:
Looks like you've fixed it?
0
 
jonathanduane2010Author Commented:
yes! thank you for your help!
0
 
RobOwner (Aidellio)Commented:
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! :-)
0
 
jonathanduane2010Author Commented:
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 :)
0
 
RobOwner (Aidellio)Commented:
Thanks Jonathon
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 8
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now