Customize templates of special pages using child theme

Once you need to customize template files of the Citadela Listing plugin for your 3dr party theme, the child theme becomes useful to achieve wanted changes. Modification of templates for Special Pages like Item detail, Item Category, Item Location pages or Search Results pages might be helpful also in situations when your theme shows broken content of mentioned pages due to the different HTML structures used in the theme and plugin.

Following the process of templates customization via child theme is a standard process that can be known from the WooCommerce plugin – templates from the plugin can be copied to the theme and customized per user needs. If you are familiar with this kind of customization in WooCommerce, you have no problem customizing main templates from the Citadela Listing plugin too.

First of all, it’s recommended to use Child Theme once you are going to customize the core files of the theme or plugin. Follow instructions on the documentation page How to use the child theme before you start your own customization.

Special pages templates

Templates for Special Pages can be found on the following paths in the Citadela Listing plugin folder:

  • Item Detail Page – ./plugin/cpt/item/templates/single-item.php
  • Listing Category Page – ./plugin/cpt/item/templates/taxonomy-category.php
  • Listing Location Page – ./plugin/cpt/item/templates/taxonomy-location.php
  • Listing Search Results – ./plugin/parts/items-search-page.php
  • Posts Search Results – ./plugin/parts/items-search-page.php – posts search results page uses the same template as search results page for Item posts

All of the files above can be copied into the core folder of your child’s theme and customized per your needs. To follow the design of pages in your theme, we recommend customizing the HTML structure of Citadela Listing template files using the same HTML tags used in your theme. That way you can make sure, that content of Citadela Listing special pages can be displayed correctly on all themes, no matter how different is HTML structure is per different themes.

Note that this article is intended to describe how to customize main layout templates, no HTML of Blocks templates.