Categories: Technology

Change WordPress Default Image Alignment and Link Type

  1. Log into WordPress admin.
  2. After you are logged into the WordPress admin, paste the following URL in your browser URL field: http://yoursite.com/wp-admin/options.phpWARNING: Do not change any other settings on this screen unless you know what you’re doing.
  3. Search for the following text: image_default_link_type
  4. In the field next to image_default_link_type, enter none

Bonus: Change the default WordPress image alignment setting

  1. Search for the following text: image_default_align
  2. In the field next to the image_default_align, enter none

For the Adventurous

If you are comfortable editing your theme’s functions.php file, you can use the following code to modify the WordPress default image settings:

/*
Change the default image settings
*/
add_action( 'after_setup_theme', 'wnd_default_image_settings' );

function wnd_default_image_settings() {
 update_option( 'image_default_align', 'left' );
 update_option( 'image_default_link_type', 'none' );
 update_option( 'image_default_size', 'large' );
}

This post was published on April 26, 2020 2:16 am

GH Team

Recent Posts

We are going to become the world's largest 100% electrified rail network: Piyush Goyal

Photo: PTI There're clear signs that India is on path of getting back into action: Piyush Goyal at India Global…

ED raids Delhi NCR tour travel companies seized rs 3.57 crore. ED raids Delhi travel companies, seized Rs 3.57 crore

Photo: FILE ED raids Delhi NCR tour travel companies seized rs 3.57 crore New Delhi. The Enforcement Directorate (ED) has…