1. Child Theme
It allows you to modify a theme without risk of losing changes after theme update.
You can override specific files (like header.php
or functions.php
) instead of editing these files directly in main theme folder, keeping things modular and manageable.
For example, if you would like to make some changes to header.php file simply copy it from parent theme and paste in child theme:
wp-content/themes/listeo-child/header.php
2. Child “Theme” for Listeo Core
You can do the same for all files in /templates/ directory in Listeo Core plugin.Ā To override a template, move it to yourtheme/listeo-core/
, keeping the path within ātemplatesā intact.
So for example, you’d like to change the part that displays Gallery on single listing view. To do that, copy file
wp-content/plugins/listeo-core/templates/single-partials/single-listing-gallery.php
to
wp-content/themes/listeo-child/listeo-core/single-partials/single-listing-gallery.php
If these files are updated in the core plugin, you may need to update your custom version in the future to maintain compatibility.