Support » Plugin: IMPress Listings » single-listing.php in theme is not overriding the plugin’s default template

  • I have a handful of custom built real estate sites that have a single-listing.php file at the root of the theme that I use to override the default plugin template. After updating the site to versions 2.5.1 & 2.5.2 I’ve noticed that the sites are now displaying the default template provided in the plugin. I’ve temporarily reverted all my sites to use version 2.5.0 in order to mitigate this temporarily. While debugging the issue I was able to confirm that the archive-listing.php file in the theme is being triggered but just not single-listing.php.

    Best,
    Santiago

Viewing 2 replies - 1 through 2 (of 2 total)
  • It appears, after checking the changelog and FAQ’s here that you now have to add your template to the plugin /includes/views/ folder and select it from the theme dropdown in the listings. This is indeed un-user friendly. I have a theme used by hundreds of users with single-listing.php in the child theme folder. Now, I can’t ask them to move single-listing.php to the plugin folder, as presumably that would be overwritten when they update the theme. I can ask them to move it and rename it (hopefully the renamed template will not be overwritten), but then they are going to have to update the template for each active listing manually. 🙁 I am going to have some very unhappy people.

    Never mind. I finally figured out that you can still have the template in your child theme folder, just have to rename it. Bu I agree with @sgarza (in another post) that it would be desirable to be able to set the child theme template as the default to avoid people having to manually change the template for every listing

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.