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]
- Replace a menu with widget or a custom template file programmatically
- Modify custom field input data before creating a new post
- Footer disappears when using the_content ( )
- How to call particular funcion when the check box is checked in plugin options page
- Get User Login Data (date, time… )
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- Registration Hooks don’t appear to be working
- Redirect to another page using contact form 7? [closed]
- jQuery does not work
- Why does re-using this function not work? [closed]
- Pass parameter to hooked function using custom page template
- different style sheet for just one page template
- Override the WordPress core function wp_referer_field
- How to return hook data when multiple parameters are present?
- Hook into a function without a hook?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- How to edit the Tags within the image file URLs?
- Condition OR for current user ID
- Is my code correct to enqueue CSS on a specific page?
- Can’t properly set the_title add_filter to show short_URL
- Control the srcset much more (not all sizes in it each time)
- How to retrieve the current post’s generated featured image size?
- How to add_filter html template to middle of content
- Filter yoast canonical add_action priority [closed]
- (Woocommerce) Order by price when entering specific category
- 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?
- Plugin Development – Functions or Hooks?
- 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?
- Add an Outside Wrapper to my Header and Make it Full Width
- Custom HTML markup
- Auto log in hook is requiring a page refresh
- Use a shortcode to display custom meta box contents
- Wp-query Order By problem
- Possible to hook into Media Library preview File column and use a custom image?
- Function not working inside of a function in functions.php
- Create custom function for hero image
- 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
- How to append classname to body tag if guest user
- Writing a function to detect an event
- Where do I go to edit this area? [closed]
- Replace plugin function with a custom function?
- Add attribute only to first image of every post via functions.php
- Different favicon on different pages
- The_content and Preg_replace in loaded Iframe [closed]
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- WordPress wraps span tags into p tags
- Changing where my author box is printed
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- “options.php” not found
- Add Adsense code between job listings – wp job manager plugin
- Problem with images URL after filter applying
- two search forms on the same page
- How do I register a new settings page? [closed]
- Function to replace comment’s accented characters before posting
- update_post_meta is Updating with two page id
- Insert a field with PREG_REPLACE – strange behaviour
- How to echo Widget Title in Custom Frontend-Template Box
- Replace admin header logo with an image
- New checkbox in custom widget isn’t saving data
- Linking Javascript in functions.php file
- how to display a page before the home page
- loginout function customization
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- is_home() not working in functions.php file
- How to conditionally add a widget via a hook in functions.php
- How to place a div inside a function that creates a div
- Function to check if custom page is used by page?
- Changing the text of Upload/Insert on Posts and Pages Screen
- 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?
- Filter for replacing the WP_query object for a given category
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- How to add or delete default value theme options while activate and deactivate theme
- WordPress comment processing . Default unapproved comments detection before posting
- Warning at top of website & top menu gone
- How to remove font awesome from loading in wp theme
- How to replace ACTION url from original wordpress login form?
- Header menu aligned right on all pages except for single-post page [closed]
- Does hook have an effect on increasing the page load?
- What is the earliest Hook a Script can use?
- Populate acf-field, depending on block name