How to Customize The Listdom Template Files?

This article is written for developers or those who have enough technical knowledge. If you're not a technical person then you should hire a website designer to do the customization.

Table of Contents

What is a Listdom template file?

All files placed in the /path/to/listdom/templates/ directory are template files. You can see these files in the Listdom add-ons too. If you want to modify these files you shouldn’t modify the core files because they will be overwritten again in the next update of the Listdom and its addons.

Override the files in your child theme

To make the customization persistent, first, you should override the template file in your theme and then modify the overridden file. To do this, first, you should create a child theme and then override the files in your child theme.

Let’s say you want to modify the layout of Style 2 of the Listdom listings’ details page. You should copy the /templates/single/style2.php file and put it in the /wp-content/themes/your-child-theme/listdom/single/style2.php path. This way listdom uses the overridden file and ignores the core file. Then you can simply modify the content of the overridden file and apply your changes.

CSS Code

Remember not to modify the current CSS files directly. Instead, if you need to make custom CSS changes, you should use the Custom Style field located at Listdom → Settings. By doing this, you can avoid causing conflicts in the existing website styles and layout, and your custom CSS will remain intact even after updates.

Are you a theme developer?

If you’re a theme developer and you want to include Listdom integration for your theme, then you can simply override Listdom template files in your theme using the same way mentioned above. Note: It’s suggested to avoid file override as much as possible and instead, apply your changes by CSS.

Still Stuck? We’re Here to Help.

Share:

LET'S GET STARTED

Start a directory site today!

Join thousands of Listdom users and build a directory and classified website.

Table of Contents