Skip to content

Instantly share code, notes, and snippets.

View KareemAdelAwwad's full-sized avatar

Kareem Adel KareemAdelAwwad

View GitHub Profile
@idavinder
idavinder / Change attachment display settings in WordPress
Last active September 29, 2023 22:55
Change attachment display setting defaults for media in WordPress
/** set default settings of attachment media box - basicwp.com */
function attachment_default_settings() {
update_option('image_default_align', 'left' );
update_option('image_default_link_type', 'custom' );
update_option('image_default_size', 'large' );
}
add_action('after_setup_theme', 'attachment_default_settings');
@import url("https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700");
@import url("https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");
* {
margin: 0;
border: 0;
box-sizing: border-box;
}
:root {