Twenty Seventeen is the default theme if no default theme has been defined.
line 359 from wp-includes/default-constants.php
if ( !defined('WP_DEFAULT_THEME') )
define( 'WP_DEFAULT_THEME', 'twentyseventeen' );
You do not need to edit that file, however, to change this.
Simply define your theme in the file wp-config.php just before this line:
require_once(ABSPATH . 'wp-settings.php');
Like so:
define( 'WP_DEFAULT_THEME', 'my-new-default-theme' );
require_once(ABSPATH . 'wp-settings.php');
Related Posts:
- Making update notification functionality for my themes
- how to create a conditional content_width for a wordpress theme?
- How To Add New Option Types To Option Tree?
- Best practice for including plugins as part of a theme?
- Modular theme settings
- Where do I find the functions triggered within a hook?
- How to determine the current widget’s parent container (sidebar widget id)
- Comment form not display properly?
- How to add menu support to a theme?
- Setting up partial Right-to-Left admin interface
- Moving functionality from functions.php to classes?
- Is it possible to display the admin bar while in the Theme Customizer?
- Pagination & get_pages?
- Custom nav menu is created with default pages, but not hooked to theme’s custom menu location
- How to pass code from header.php to footer.php
- Move my theme style.css into a folder
- How do I add a post to a menu
- Demo Import changes terms ids
- how to change WordPress menu markup/classes
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Is it a good idea to make whole theme widgetized?
- Gutenberg Reusable Block as part of WordPress Theme page
- How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme
- How to handle custom form submission?
- menu behavior is not as expected
- My custom theme does not load the translations
- Prevent theme from activating [duplicate]
- A mystery 300px image size
- Meta tag viewport
- Change the template of multiple multisite pages at the same time
- Show video as part of the post?
- Switching theme only changes style sheet being used
- Is function_exists() considered a good practice when using 3.0+ functions?
- How to add Bootstrap Tour JavaScript to WordPress Admin Panel Dashboard Widget
- get_theme_mod returning no output
- Can I have a widget and sidebars in custom theme?
- How to change database values on theme update
- after renaming my wp-content folder, how do I upgrade my wordpress version?
- WordPress theme switcher
- How can I wrap html around the output of the_time function?
- Problem with empty class attributes when running a filter on nav_menu_css_class
- Limitations when modifying wp_title with a filter
- WP_bootstrap_Navwalker_issue [closed]
- Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- Make custom CSS changes and use built in theme customizer later?
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- Theme’s window.open call goes to “Page Not Found”
- Inserting images in multiple posts native gallery
- correct tags for validating input types
- Dynamic menu links after header title
- Does the textdomain have to be the theme’s name?
- How to query the latest 5 posts and sort them by title?
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- Prerequisites Skills to learn WordPress [closed]
- Template Tag “template_directory” pulling wrong path
- How to rotate every letter in a title
- wordpress 404 not found after rewrtie the author link
- the_post_thumbnail() get the URL to the “medium” sized image
- WordPress Theme that returns all posts as a JSON object?
- Can I make a Customizer dropdown-pages list include private pages?
- HTML block gutenberg templates
- Use a filter on menu items that have children
- Do I need to escape get_the_post_thumbnail function?
- Why is switching between themes breaking my child theme?
- Reusable and site-wide content that can be used in a theme
- How to disable WordPress to put P tags?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- CSS preprocessor file messed up after compiled
- Style first 3 posts differently with WP_Query [duplicate]
- Get video from the post on homepage
- is_front_page use in sidebar.php
- matisse theme show excerpts not whole content
- WordPress Themes Directory: Template which hits the standards?
- My custom taxonomies are not showing up in the admin menus
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- How to get URL of category of a custom post?
- How to add custom theme in hosting server?
- Is there a plugin for versioning files in the theme (style , .js and .php files)?
- Getting post URL within custom content template
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- Getting unexpected warnings from theme options code
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Different templates for each category level
- How to show children pages as array
- wp_nav_menu custom walker class
- Using Customizer value in an external PHP file inside a theme
- Changes to template not showing up unless ?reset=1 added to URL
- How to add drop symbol to parent nav items which have child
- Enqueue Stylesheets After Theme’s “rtl.css”
- How do I keep images in posts below a certain size without editing the post?
- Using wp_enqueue_script with social media buttons?
- How can i use archive.php for indexing wordpress default posts?
- How can disable function wp_link_dialog()
- How can I add a single image from a gallery into the page header?
- How to create full header but keep content narrow
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- WordPress Two Level Filters on Getting Custom Taxonomy Terms