wordpress snippets last updated   : September 29, 2014
we now have 639 snippets

Set default attachment display settings, alignment, link to, size in wordpress

wordpress snippet

Have you ever wanted to change the default options when inserting media into a post? Setting the default alignment to “left” or the default size to “large” ? This may not appear to be a big deal but if you are constantly changing the settings to the same thing over and over again for each image this is a must have snippet. We are updating the options “image_default_align, image_default_link_type, image_default_size”. Keep in mind that this just changes the default settings of these options within the add media popup. The method we use to update these options can be used for a number of other options including what you can find in this options reference.

read more

Adjust default sizes for embedded content

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you update the default embed sizes.

read more

Set post thumbnail size

wordpress snippet

Adding this to the functions.php of your wordpress theme will allow you to set the default thumbnail size.

read more

add_image_size to your theme

wordpress snippet

Adding this PHP code to your functions.php will allow for additional images sizes within your theme.

read more
jqsnipp.com | we just launched jquery snippets website