Title: [Gallery] Full image size without using shortcode?
Last modified: August 20, 2016

---

# [Gallery] Full image size without using shortcode?

 *  [fernandolawl](https://wordpress.org/support/users/fernandolawl/)
 * (@fernandolawl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/gallery-full-image-size-without-using-shortcode/)
 * Hi All,
 * I was wondering if there was a way to set my gallery image size=”full” without
   using the short code?
 * I’ve already checked under settings -> media -> Image sizes… This was not the
   solution.
 * I noticed that Add Media -> Insert image -> ATTACHMENT DISPLAY SETTINGS -> Size-
   > Full Size (drop down)… I’m looking for this same feature for the gallery images.
 * Also, I would prefer not to use a plugin. Maybe some lines of code I need to 
   function.php in my theme?
 * Thanks in advance!

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

 *  Thread Starter [fernandolawl](https://wordpress.org/support/users/fernandolawl/)
 * (@fernandolawl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/gallery-full-image-size-without-using-shortcode/#post-3473327)
 * I got the answer to this from:
    [http://wordpress.org/support/topic/theme-function-set-default-image-size-for-gallery-shortcode-feature?replies=6](http://wordpress.org/support/topic/theme-function-set-default-image-size-for-gallery-shortcode-feature?replies=6)
 * I basically changed ‘thumbnail’ to ‘full’ in the media.php file:
 * extract(shortcode_atts(array(
    ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order ID’,‘
   id’ => $post->ID, ‘itemtag’ => ‘dl’, ‘icontag’ => ‘dt’, ‘captiontag’ => ‘dd’,‘
   columns’ => 3, ‘size’ => ‘thumbnail, ‘include’ => ”, ‘exclude’ => ” ), $attr));
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/gallery-full-image-size-without-using-shortcode/#post-3473338)
 * No! Never, **ever**, edit WordPress core scripts. And do not encourage others
   to do so. Editing core scripts can bring down your entire site and/or open security
   holes for hackers to use.
 *  [ricoh](https://wordpress.org/support/users/ricoh/)
 * (@ricoh)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/gallery-full-image-size-without-using-shortcode/#post-3473429)
 * esmi is right, if you read to the bottom of that post you referenced it shows
   you how to handle that modification. In your theme’s function.php add the code
 *     ```
       remove_shortcode('gallery', 'gallery_shortcode');
       add_shortcode('gallery', 'my_gallery_shortcode');
       ```
   
 * Then create your custom function “my_gallery_shortcode” (or whatever you name
   it), copy the original code from the gallery_shortcode function in media.php 
   and paste it into your custom function and then feel free to edit away until 
   you get what you want. So your functions.php would look something like this.([…]
   means abbreviated, there is a bit of code in that funcion lol)
 *     ```
       function my_gallery_shortcode($attr) {
       [...]
       extract(shortcode_atts(array(
       	'order'      => 'ASC',
       	'orderby'    => 'menu_order ID',
       	'id'         => $post->ID,
       	'itemtag'    => 'dl',
       	'icontag'    => 'dt',
       	'captiontag' => 'dd',
       	'columns'    => 1,
       	'size'       => 'large',
       	'include'    => '',
       	'exclude'    => ''
       			), $attr));
   
       [...]
       }
   
       remove_shortcode('gallery', 'gallery_shortcode');
       add_shortcode('gallery', 'my_gallery_shortcode');
       ```
   

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

The topic ‘[Gallery] Full image size without using shortcode?’ is closed to new 
replies.

## Tags

 * [attachment display settings](https://wordpress.org/support/topic-tag/attachment-display-settings/)
 * [full](https://wordpress.org/support/topic-tag/full/)
 * [full-size](https://wordpress.org/support/topic-tag/full-size/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [Short Code](https://wordpress.org/support/topic-tag/short-code/)
 * [size](https://wordpress.org/support/topic-tag/size/)

 * 3 replies
 * 3 participants
 * Last reply from: [ricoh](https://wordpress.org/support/users/ricoh/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/gallery-full-image-size-without-using-shortcode/#post-3473429)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
