Wordpress media default size issue, help needed

Discussion in 'WordPress' started by guru1surfer, Aug 15, 2015.

  1. #1
    Hello,

    I have a little issue, but it got me a little itchy and maybe somebody can help me with an easy way or a feature in Wordpress. In the insert media when inserting an image to a post. I have 4 sizes to choose from Small, Medium, Large and Original. Now every time i have to insert an image i have to change from the default set Original to large. I know it is not much work, but it would be much more convenient as it will save me two less clicks every time i insert an image :)

    Anyone can help? Thanks.
     
    guru1surfer, Aug 15, 2015 IP
  2. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #2
    Hello there,

    You can set the sizes you want.. simply go to Settings>Media and you can adjust the sizes.. make thumb and medium to 0 height and 0 width to deactivate them... then choose the size of the Large area or leave it as default...

    Goodluck
     
    themes4all, Aug 16, 2015 IP
  3. guru1surfer

    guru1surfer Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    13
    #3
    Thanks for the reply, but this does not answer my question!

    I am simply trying to have the size set to the large size by default when i open the "insert media". That is so i don't have to change it from original to large every time.
     
    guru1surfer, Aug 16, 2015 IP
  4. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #4
    hello,

    ok, here is another explanation :), Add this Code to your theme's Functions.php File :

    
    function blueseodesign_setup() {
    // Set default values for the upload media box
    update_option('image_default_align', 'center' );
    update_option('image_default_link_type', 'media' );
    update_option('image_default_size', 'large' );
    }
    add_action('after_setup_theme', 'blueseodesign_setup');
    
    Code (markup):
    If you want the default link action to be none, then change this line :
    update_option('image_default_link_type', 'media' ); to :

    update_option('image_default_link_type', 'none' );

    Goodluck
     
    themes4all, Aug 17, 2015 IP
  5. guru1surfer

    guru1surfer Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    13
    #5
    Thanks a lot! i have already called the functions a little different:

    add_action('after_setup_theme','default_attachment_display_settings');
    function default_attachment_display_settings(){
    update_option('image_default_align','none');
    update_option('image_default_link_type','media');
    update_option('image_default_size','large');}
     
    guru1surfer, Aug 17, 2015 IP