skip to Main Content
support@webcodingplace.com

Responsive Posts Carousel Override Post Templates

In this tutorial we will guide you to override Post Templates without losing changes on plugin updates. We’re using Mini Post Template as a example here.

Template File Name

First you need to know the template file name of the selected template. Its lowercase version of template name, replacing spaces with dashes. In our case, Mini Post the template file name will be mini-post.php

 

Template Files Default Location

By default, plugin loads all templates files from templates directory. Its inside inc directory. Navigate there and you will find a file named mini-post.php It is the template file we’re going to modify.

 

Load Template from Theme

Go to the current activated theme’s root using FTP and create a directory there named rpc. Copy the template file mini-post.php from templates directory and paste it inside rpc directory. Now this file will load. You can make changes in this file.

Rameez

Wordpress Developer

This Post Has 10 Comments

  1. Hi,
    I bought your Plugin cause of this feature. I did ervery step u mentioned but it seems not to work! Looks to me like ab bug. Could you fix this soon?

    Cheers
    Felix

  2. Hi,

    I tried this approach on a child theme and it doesn’t work unless if I were to repeat the steps on the parent theme’s root folder. May I suggest to modify function load_post_template() under file carousel.class.php; to use get_stylesheet_directory() instead of get_template_directory()?

    Regards,
    Alexist.

        1. Hi Rameez,

          Just updated to the latest version of the plugin, tested and it’s working fine now on child theme. Thanks for the great job there.

          Regards,
          Alexist.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top