コンテンツにスキップ

Listdom Developer Templates and Builders Documentation

このコンテンツはまだ日本語訳がありません。

This page explains how Listdom resolves templates, where theme overrides fit in, and how Elementor integration is wired in the codebase.

Primary resolver: lsd_template($tpl, $override = true).

When override mode is enabled, extracted data shows this lookup order:

  1. Plugin template: plugins/listdom/templates/{tpl}
  2. Parent theme override: {parent-theme}/listdom/{tpl}
  3. Child theme override: {child-theme}/listdom/{tpl}
  4. Final filter stage: apply_filters('lsd_template', $path, $tpl, $override)

Use this to customize rendering while keeping plugin core update-safe.

For Listdom taxonomies, LSD_Taxonomies::template() checks locate_template('taxonomy-{taxonomy}.php') and falls back to plugin templates when theme files are absent.

Examples in extracted data:

  • taxonomy-listdom-location.php
  • taxonomy-listdom-category.php
  • taxonomy-listdom-feature.php
  • taxonomy-listdom-tag.php
  • taxonomy-listdom-label.php

Core template inventory includes groups such as:

  • auth/*, dashboard/*, elements/*, maps/*, paginations/*
  • payments/*, privacy/*, profile/*, search/*, single/*
  • skins/* (accordion, carousel, grid, list, halfmap, table, timeline, etc.)
  • taxonomy templates, widget templates, plus empty.php and iframe.php

For a practical walkthrough, see Customize Listdom template files.

  • Elementor package hooks into lsd_listing_before_single_content.
  • If a listing is Elementor-built, the package sets $single->style to listing ID and returns $single->builders().
  • Widgets are registered via elementor/widgets/register.