Title: Horizontal Thumbnails
Last modified: August 19, 2016

---

# Horizontal Thumbnails

 *  Resolved [hawt](https://wordpress.org/support/users/hawt/)
 * (@hawt)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/)
 * Hi,
 * Sorry if this is an easy question but I am feeling my way through setting up 
   a website with wordpress and I am having trouble controlling what it does.
 * If you go my events page:
 * [http://haveartwilltravel.org/?page_id=20](http://haveartwilltravel.org/?page_id=20)
 * You will see that I have medium sized thumbnails that are aligning vertically.
   I would like to get them to align horizontally. Can anyone help me with this?
 * I have tried creating a 6 column gallery which aligns horizontally but I can’t
   have the thumbnails link to new pages. It seems the links only go to a page with
   a full sized image or a page you can make comments on.
 * Any help would be greatly appreciated.
 * Thanks,
 * Matt

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/#post-1213388)
 * For a start, when you insert images, you need to choose “Align: left” rather 
   than Align: None”. Then try adding the following to the bottom of style.css:
 *     ```
       .aligncenter {
       	display: block;
       	margin-left: auto;
       	margin-right: auto;
       }
   
       .alignleft {
       	float: left;
       }
   
       .alignright {
       	float: right;
       }
       ```
   
 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/#post-1213475)
 * Hi,
 * Open wp-admin/inline-uploading.php
 * Find:
 *     ```
       if ( $imagedata['width'] > 128 &&
       $imagedata['width'] >= $imagedata['height'] * 4 / 3 )
       			$thumb = wp_create_thumbnail($file, 128);
       		elseif ( $imagedata['height'] > 96 )
       			$thumb = wp_create_thumbnail($file, 96);
       ```
   
 * Replace with your desired height width. I have doubt it in this code:
 *     ```
       if ( $imagedata['width'] > 256 &&
       $imagedata['width'] >= $imagedata['height'] * 4 / 3 )
       			$thumb = wp_create_thumbnail($file, 256);
       		elseif ( $imagedata['height'] > 192 )
       			$thumb = wp_create_thumbnail($file, 192);
       ```
   
 * Thanks,
 * Shane G.
 *  Thread Starter [hawt](https://wordpress.org/support/users/hawt/)
 * (@hawt)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/#post-1213476)
 * esmi,
 * It worked! Thanks for your help with this.
 * Matt
 *  Thread Starter [hawt](https://wordpress.org/support/users/hawt/)
 * (@hawt)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/#post-1213479)
 * Hi Shane G.
 * Could you tell me what I would accomplish by changing the wp-admin/inline-uploading.
   php code? Will this automatically create a specific size thumbnail?
 * Thanks,
 * Matt
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/#post-1213483)
 * The hack that Shane posted will (I _think_) double your thumbnail image sizes
   but hacking the WordPress core isn’t something I’d recommend. For a start, you’d
   lose these changes the next time you upgraded WordPress.
 * Do you actually have a problem with image sizes?
 *  Thread Starter [hawt](https://wordpress.org/support/users/hawt/)
 * (@hawt)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/#post-1213486)
 * Hi Esmi,
 * I don’t have a problem with image sizes. I’ll leave the WordPress core alone.
   Thanks for the advice.
 * Matt

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Horizontal Thumbnails’ is closed to new replies.

## Tags

 * [align](https://wordpress.org/support/topic-tag/align/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [horizontal](https://wordpress.org/support/topic-tag/horizontal/)
 * [links](https://wordpress.org/support/topic-tag/links/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [hawt](https://wordpress.org/support/users/hawt/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/horizontal-thumbnails/#post-1213486)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
