Utilizing a child theme: modifying PHP, CSS, JS files while maintaining future update compatibility
Install the Listivo child theme and make your CSS, PHP and JS changes there, so nothing you customize is overwritten the next time you update the theme.
2 minute read
Using a child theme is the recommended way to modify any free or premium WordPress theme. It lets you keep future update compatibility, so you can benefit from updates and fixes and still keep your own changes.
/wp-content/themes/listivo/ — you will lose your customized files as soon as you update the theme. Keep every change in the Listivo Child Theme.How to download the Listivo child theme
- 1 Open your ThemeForest downloads
-
2
Choose All files & documentation
-
3
Unzip the package
Inside you will find the
listivo-child.zipfile.
-
4
Go to Appearance > Themes
-
5
Click Add New
-
6
Choose your file and click Install Now
Upload the
listivo-child.zipfile you unpacked.
-
7
Activate the child theme
How to use it for file modification
1. CSS
Add any new CSS rule into your wp-content/themes/listivo-child/style.css file. It will overwrite the old rules in listivo/style.css.
2. PHP
You need to copy the original file — for example /wp-content/themes/listivo/templates/widgets/model/listing_address.php — and paste it into /wp-content/themes/listivo-child/templates/widgets/model/listing_address.php.
This way the new file will be loaded instead of the original one. This example changes the single listing “Address”.
3. JS files
JS files need to be dequeued and enqueued again — you can read more about it in the WordPress child theme documentation.
Ask the people who build Listivo
We answer by email from support@tangiblewp.com. With Premium Support, we also fix your site when something breaks.
We can also run your site for you, or build a new one.
Was this guide helpful?