• Resolved hawt

    (@hawt)


    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

    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)
  • 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;
    }

    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

    (@hawt)

    esmi,

    It worked! Thanks for your help with this.

    Matt

    Thread Starter hawt

    (@hawt)

    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

    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

    (@hawt)

    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.