• Resolved andyward75

    (@andyward75)


    Hi,

    I created a Custom Template to replace pdb_single_default. First thing I noticed is that the templates were NOT under the THEMES directory but under the PLUGIN directory. This is different to the documentation.

    Anywa, all I wanted was to remove the display of teh Group Name and Group Description so that I could use my own text on the page. I tried several different ways of specifying teh template in the shortcode but all to no effect.

    So, I downloaded your Custom Tempate Folder and put my template in there but again to no effect.

    Could you confirm:

    1. Do I need to specify that I am using the Custom Template folder anywhere? I couldn’t find anywhere but that doesn’t mean much.
    2. Could you confirm how I should specify the template. I am using [pdb_single template=pdb-single-ntnd.php]
    3. I have NOT moved the default templates from their current location. Should I or should they remain where they are under wp-content/plugins/participants-database/templates
    Many Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    I understand that the placement and use of the custom templates can be a little tricky.

    It sounds like with the use f the Custom Template Folder add-on that you have your custom templates in the right place. The way the template names work is you don’t need to put in the whole name of the file, just the part after the prefix…for example:

    Your template file name: pdb-single-ntnd.php

    Use this shortcode: [pdb_single template=ntnd]

    That’s it… the pdb-single part of the template is the prefix that tells the plugin what shortcode the template is for, you only need to use the part that uniquely identifies the file.

    Thread Starter andyward75

    (@andyward75)

    Cool and thanks for the quick answer. That worked a treat and now it behaves as I would like.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Templates’ is closed to new replies.