You can do this in two ways. If you want to keep it theme specific, edit your functions.php
file with this code:
add_action( 'after_setup_theme', 'my_new_default_image_settings' );
function my_new_default_image_settings() {
update_option( 'image_default_align', 'right' );
update_option( 'image_default_link_type', 'file' );
}
The other way to do it is more general, but also more rigid:
- Go to YOURSITE.COM/wp-admin/options.php
- Find the
image_default_link_type
field. - Type in
file
. - Find the
image_default_align
field. - Type in
right
. - Scroll to tho bottom and hit Save.
Some helpful references:
Related Posts:
- Add multiple custom fields to the general settings page
- Issue with get_theme_mod returning a blank value instead of the saved value
- How do I change parameters without changing the core
- Post thumbnail relative link and HTML modify
- Move Custom Fields on General Settings Page to New Location
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- True email confirmation for registration (keeping unvalidated users from user table)
- How do I add functionality to images?
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- Does hooking into the same action multiple times drain memory?
- Extract image from content and set it as the featured image
- Is it possible to remove the “standard” post format?
- How to create thumbnails for PDF uploads?
- Modify search function in WordPress (TwentyTwelve)
- How to customize search result page title?
- Removing Unnecessary Text from Admin Menu without CSS
- Problem with extract() with custom shortcode
- Issue adding text after short description on product pages Woocommerce [closed]
- Custom function for user register in wp?
- Customize “the_posts_pagination” and put list instead div
- Fatal error when trying to get admin email on contact form
- options.php problem – data not saved
- adding custom classes for tables
- Customizer field value into functions.php variable
- wp_dropdown_categories and custom attribute
- Gravity Forms – Using a Form to Pre-populate A Gravity Form [closed]
- Running a script before absolutely everything
- How to display post content instead of excerpt
- Automatically wrap multiple images in div
- Ajax not working properly
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name
- Which action does wp_update_user triggers?
- Include default functions and methods
- Hard-coding custom menu elements for menu manager
- How can I get my Script to work on the Login page?
- How can I modify all existing tags while keeping the urls themselves?
- Trigger a custom function when option are saved in admin area
- Execute a ultimate member action when user role is updated
- IF Statement on Button to make it complete and “uncomplete” based on user action / click
- Gravity Forms Button Text
- Find resources dynamically loading and change or add to the url
- How to use wp_trash_post (or wp_delete_post) for deleting a (or all) post(s) from custom post type?
- When sale price is 0.00 show only regular price
- Unable to login using username
- Hook into a function without a hook?
- Condition OR for current user ID
- How to retrieve the current post’s generated featured image size?
- Filter yoast canonical add_action priority [closed]
- How do I hook into the container of wp_nav_menu?
- Remove links from the_content when using filters wp_trim_excerpt
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- Why There Is No “get content by ID” Function
- Is there a way to prevent a function/method from being called outside a specific hook?
- Wp-query Order By problem
- Function not working inside of a function in functions.php
- Randomizing wp_tag_cloud() in child theme
- Adding code before post title with the_title produces weird results
- Add back in child theme what the parent theme removed with remove_action
- login_headertitle is deprecated since version 5.2.0
- Where do I go to edit this area? [closed]
- Replace plugin function with a custom function?
- Different favicon on different pages
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Add Adsense code between job listings – wp job manager plugin
- Problem with images URL after filter applying
- loginout function customization
- How to place a div inside a function that creates a div
- implementing a centralized content “show-do-not-show” toggle?
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- WordPress comment processing . Default unapproved comments detection before posting
- custom error message for empty username and password using authenticate filter not working
- Modifying a WordPress Plugin
- CF7 select value get to function and reciept value from function
- Get post_author email for Zapier Integration
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Woocommerce custom calculation function
- Remove all video attachment, both files and post/postmeta from database?
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- How can I stop the hook from breaking the login/logout function?
- Replace image attributes for lazyload plugin on image elements with specific class
- WordPress hooks to call a function inside a construct
- WordPress undefined function error on using add_action() in functions.php
- How to make an If Else on Excerpt Filter
- Function the_content
- save_post hook – headers already sent?
- Settings in functions.php used by a plugin
- Random text changing to weird icons in both admin & front end
- functions.php / replacing div’s with new ones?
- Add custom fields after post/page title
- Force resize for all video content
- Unhook the comment form in Buddypress
- Post variables not displaying correctly in custom function
- How to Add Extra Text In WordPress Title Before Post Publish
- Problem with removing characters “<” – WpAllImport
- multible shortcodes (for differnt values) with one function
- Create section wit form
- Customizer cuistom CSS Priority ordre Issue