(See comments by others for your PHP error – though I’d recommend a good editor or IDE to help you spot syntax errors quickly and tidy the code for you as you type.)
Re: the question title, no, you usually don’t have to do a clean install if there is an error with a theme and you find yourself locked out of the main site and /wp-admin
.
There’s a simple way to reset to the default WordPress theme (e.g. Twenty Fifteen
).
- In (S)FTP etc., rename the theme directory from
Divi
toDivi-temp
- You should now be able to access
/wp-admin
again - You’ll see this message: “The active theme is broken. Reverting to the default theme.”
- Now fix your theme / restore a working copy from a backup and re-enable it.
Related Posts:
- How to completely disable a taxonomy archive on the frontend?
- Why is get_post_format() for “Standard” returns empty
- Custom post types and child theme
- Password-protect a custom rss feed
- White screen error for a custom theme
- How to override parent theme function through the child theme [closed]
- Single Page WordPress CSS and JS links
- How to use custom fields to enable sticky posts on custom post types?
- Hide Meta Boxes for Non-Admins
- I am trying to output portfolio items with a picture. This code doesn’t seem to be working. What am I doing wrong?
- Pre_get_posts filter overwrites all search functionality
- Is it possible to place custom post type files inside a folder in theme directory?
- Custom template with CPT doesn’t display on frontend
- Create a wordpress test-system as a clone from productive system
- Get term name and term parent into custom post type permalink
- Get parse_query filter to return slug instead of id
- What is the best practice for displaying my plugin content in themes?
- Migrating a taxonomy’s tags to the native category
- Adding custom image sizes and post types to a plugin or to a theme?
- Want to be able to sign up subscribers as authors
- How do I set a custom page template for a custom post type?
- Unable to set featured image
- Running a song lyrics site on WordPress
- Using page slug in wp_query
- Specify a particular page to list all custom types
- uploading problem of wordpress theme
- How to have permalink like domain.com/term/postname?
- Page Template Dropdown For Custom Post Types
- Custom post types problem
- why post_class() function apply css classes to all other files?
- Template Hierarchy for custom post type pages
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Custom post type is using the index.php template
- Create a simple Testimonial page
- One Site. One Theme. Multiple Stylesheets without plugins?
- Custom Post Type – Portfolio no longer works
- Methods for development wordpress themes [closed]
- Render a Post or Page using the correct file
- Can I assign a theme to a custom post type?
- Custom Post Type Field Array parsing [closed]
- Custom Post Type – Main page for certain posts
- display two images in theme header.php file
- Invalid content when I try to import custom post type from the old template wordpress
- Query when is one or several values
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- Create Post Types from a XML url (Real Estate website)
- I can not call the categories of custom post type
- Change Background Color For CPT Template
- WordPress add taxonomies/terms list as a menu in archive page
- Adding CPT changes entire layout of my site except for the archive of that CPT
- How to get main div html to print a list of posts inside?
- erase post excerpt limitation [×]
- How to get $post object available inside functions.php to localize script?
- Query custom post type and showing its content
- Problems with a custom meta_box
- Create custom post order (with custom post type meta)
- Query by post type or category
- Change position of Post Formats box?
- How to manage wordpress knowledge base/wiki/posts collections
- How to get ‘Products’ on home page?
- How to create a job post by email parsing? [closed]
- how to display custom taxonomies in front page
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- How can I produce multiple webpages with a different output based on one entry/Page/custom Page?
- WordPress commercial theme cancels default functionality
- meta box on custom post type
- Custom Post Types strange pagination problem
- Categories filtering in new post
- Custom Taxonomy not being saved on custom posttype
- Different Ways to Query Custom Post Types?
- “Post name” permalink returns home page for custom posts
- Create more category hierarchical depth for custom post type/taxonomy plugin (widget)
- Addin plugin custom post type to members plugin
- Ordering custom post type by multiple custom fields
- How to Output which matched meta_keys were found from custom_type_posts?
- Displaying Custom Taxonomies From Multiple Custom Post Types
- A page that shows a list of a specific custom post type
- sub CPT and CRUD
- Hierarchial Custom Post Types/Taxonomies
- Registering custom post type menu editor problem
- Post author for revision not being set on update/insert
- Custom Postype specific changes in admin panel
- Multisite: How to define and limit a Custom Post Type to specific sites?
- Custom post type and taxonomy permalinks
- re-register custom post type with custom capabilities
- Custom Post Types vs. Advanced Custom Fields (with Repeater Field add-on)
- Filtering results for post_type tells me I don’t have permission
- Custom Posts on homepage
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Custom Post Type Template Alternative
- How do I share categories across multiple post types?
- Is it better to use filter for the_content in archive pages?
- Custom Post Conditional for Parent & Child Single.php?
- Exclude custom taxonomy term posts from custom post loop
- Multiple Frontend Filters Using Advanced Custom Fields
- How do I programmatically create new posts of a custom post type over the XML-RPC API?
- Hierarchical permalinks for custom post type and taxonomy
- Custom Meta Title for Custom Post Type
- Custom post types and category archive
- WordPress make Grandparent and great grandparent filterable in custom columns