In previous questions you mentioned that you created a child theme and installed the multiple themes plugin so that you could put code on a specific page on your site. So you’ve been using child themes in a way that they weren’t intended to be used.
Instead, think of a child theme as a transparency, a layer over the top of your theme. You create a child theme, and place custom code in it, then activate that child theme instead of the theme you were using. WP will load both themes, preferring the template files in the child theme.
This way, because all your changes are in the child theme, when the parent theme is updated no loss occurs.
Related Posts:
- Using OOP in themes
- How to Link External jQuery/Javascript files with WordPress
- Am I allowed to license my WordPress theme under the aGPL
- Best way to include Bootstrap in WordPress
- Best practices for a Style/CSS based theme options page?
- How to license my commercial WordPress theme? [closed]
- How to Use WordPress as Static CMS Without Blog Posts
- How do I create my own admin button and theme settings page?
- Jquery in Child Theme
- Changing the visible url path to css & js files
- How to automatically highlight syntax of code in a post?
- register_theme_directory and broken deploys
- Retaining old HTML archives and displaying themes conditionally
- switch a theme different per user role
- Extra User Profile Field Upload File / Image
- hfeed CSS class in Twentyeleven Theme
- Which is the most well coded and semantically correct naked/blank WordPress theme (based on WordPress coding standards)?
- How do you install a .MO (language file) to use as part of a theme?
- How to change the themes “Live Preview” url within the Appearance->Themes page?
- Cannot find the code for “Edit This” link in posts in a specific theme
- How do I apply my CSS to a theme page?
- How to get the post-ID in my plugin?
- Customize “Continue Reading” text [closed]
- Parallax WordPress theme without hardcoding – possible?
- Embedded Videos (PB) – Not Available
- Recommended Themes for a Developer-related Topics Blog?
- Console error, even if everything is working?
- How Do I Use A Custom Mobile Theme?
- How can I make a different theme be viewed for logged in users vs guests?
- Custom branding / theme specified by URL
- New custom theme option (text input) giving index error
- Upgrading from 2.9.4 to 3.0.x and with a custom theme
- CSS for triggering Avada toggles using an image or clickable element [closed]
- What is calling this parallax-slider.less file that is missing? [closed]
- Random 404 error on WP
- Change WordPress Theme automatically for A/B test
- Theme option not saved if in wp_editor() and html decoded
- display comment form for specific post id
- Update wordpress theme without customization loss
- My new WordPress theme based on the TwentyEleven theme doesn’t display the front page OR the blog page
- How to add logo in Thematic
- How to create a new copy of a theme currently being used?
- Creating a job board using WordPress (for free)? [closed]
- How to transform a custom made static HTML website to a WordPress website [closed]
- Need to edit themes HTML code
- Translate a site based on different themes
- Problems to disable the comments for my statics pages
- Newbie wordpress question re banner height
- Issue with theme mod options during domain migration
- FTP + Unable to locate WordPress content directory (wp-content)
- How to add custom JS file in WordPress Child theme with get_theme_file_uri
- Adding the jQuery to my theme that already exists in WordPress?
- Interpretation and explanation of register sidebar
- How to access theme fonts using custom CSS style? [closed]
- Removing the references to the wp-content folder
- I don’t know how to put a placeholder [closed]
- How to hide title on ‘highlights’ – Themify feature
- WordPress setup one database with two different website?
- Cannot update a file for my theme
- Do all themes accommodate all features?
- How to reduce Header at the top of the page
- Custom fields not displaying on front end
- How can i set default pages to a word press theme? it shouldn’t be changed even if i install the theme in different host
- Change “published by”
- how to notify users about new theme updates?
- 12 column grid layout
- Where to find child themes?
- Theme check warning about text domain
- dynamic image path within a javascript file
- how to create a section inside a section with theme options customizer
- WordPress thinks my custom theme is a theme in the public theme repository
- WP Customize API Checkbox change value
- Updating a theme
- Baskerville Theme – How to use the masonry grid layout on other pages
- Background image not showing up
- How to display post meta data in secure manner
- theme continuous deployment from bitbucket to windows azure
- Changing themes on locally hosted webpages
- What is the template file for topic layouts in bbPress?
- Style of a theme
- Orion theme (from theme forest) [closed]
- Will this js code work in a page template?
- Showing wordpress theme demo at front end
- separate home page into separate pages
- Moving WordPress with Super Skeleton theme
- Customising a theme
- Blog shows up without Theme/CSS styles
- Boldy theme – Regarding the images above the boxes
- How can I allow a client to edit certain parts of a static site?
- A problem with functions.php file on my WordPress site
- hardened wordpress linux install
- change template with button
- How do I remove the dash (-) between my Site Title and Tagline?
- WordPress Theme redirects to the Index page – Theme customizer problem
- Obtaining the original unchanged Theme [closed]
- How to assign posts to different themes? [closed]
- Using AJAX to Update WordPress Theme
- Why does WP theme not look like promoted? [closed]
- Remove image next to header image on WellExpo theme [closed]
- Adding PHP code to single template in 2023 edition of WordPress theme