Katen Theme Documentation
  • Welcome
  • Installation & Setup
    • Installation Requirements
    • Theme Installation
    • Installing Required Plugins
    • Importing demo data
      • Import Issues
  • Theme Usage
    • Editing Home Page
    • Editing Contact Page
    • Post Layouts
    • Post Formats
    • Author Box
  • Customization
    • Setup Menu
    • Using Widgets
    • Setup HomePage
    • Header
      • Logo
      • Layouts
      • Options
      • Style
      • Canvas-off Sidebar
    • Social Icons
    • Blog Pages
      • Archive Pages
      • Single Post
      • Layouts
    • Page Header
    • Site Colors
    • Dark Mode
    • Typography (Fonts)
    • Preloader
    • Footer
    • Custom CSS
  • Third-Party Plugins
    • Breadcrumbs
    • Contact Form
    • MailChimp
    • Instagram Feed
  • Advanced Setup
    • Translation
    • Speed Optimization
      • General
      • LiteSpeed Cache
      • Image Optimization
      • Get Faster Web Hosting
    • Using Child Theme
    • Updating Theme
Powered by GitBook
On this page
  1. Advanced Setup

Using Child Theme

Using a WordPress child theme allows you to make modifications to an existing theme without directly modifying the parent theme's files. This is beneficial because it ensures that your modifications won't be overwritten when the parent theme is updated.

  1. You can override any parent theme styles by adding your own CSS rules to the style.css file.

  2. In the child theme folder, a file named functions.php. This file allows you to add additional functionality or modify the existing functionality of the parent theme. You can use WordPress hooks and filters to achieve this. For example, you could add custom functions or modify template files.

  3. Activate the child theme in your WordPress dashboard. Go to "Appearance" -> "Themes" in your WordPress admin area and click on the "Add New" button at the top. Upload the katen-child.zip file and click "Install Now." After installation, click on the "Activate" button to activate the child theme.

  4. Any modifications you make to the child theme's files, such as style.css or functions.php, will now override the corresponding files in the parent theme.

Remember that the child theme only contains the modified files and additional files you add; all other template files, assets, and functionality will still be inherited from the parent theme.

Using a child theme is a best practice for WordPress theme customization, as it allows you to maintain the integrity of the parent theme while making customizations that are specific to your needs.

PreviousImage OptimizationNextUpdating Theme

Last updated 1 year ago