Posted: January 5, 2015 at 10:36 am
|
We have the custom Templates module installed and I have tried everything that I have read on creating a custom temple to override this one but nothing seems to work. Is it overridable? Kevin |
Hi Kevin, These are the steps that we recommend: https://eventespresso.com/wiki/custom-template-add-on/#cel_custom Did you relocate a copy of the existing template as mentioned in the steps in the link above? — |
|
|
Hi there, Yes I followed the instructions to create the folder and filename inside the theme directory, copied the contents of the index.php file from the Espresso Template Recurring Dropdown plugin and then change the template_name in the shortcode. I get the error “he custom template custom-recurring-dropdown can not be found” |
Hi, could you relocate it here: /wp-content/uploads/espresso/templates/ Also, could you share the exact shortcode that is in use? — |
|
|
I have also tried it in /wp-content/uploads/espresso/templates/custom-recurring-dropdown/custom-recurring-dropdown.php with this shortcode: Same error It is being done through a PHP do_shortcode() but that shouldn’t make a difference. |
Hi Anthony, While it’s possible to override the Recurring Dropdown template, there are additional steps to take because unlike the events table template, the Recurring dropdown template is contained within a function. Along with that, there is a script and stylesheet that are loaded from the main function. So your options are |
|
Hi Anthony, Loading custom templates can be done by placing the template file within /wp-content/uploads/espresso/templates/{template_name}/template.php So in this case as you are using the recurring-dropdown template you’ll need to place the template file within: /wp-content/uploads/espresso/templates/recurring-dropdown/template.php This will override the default template template if you use the standard shortcode: [EVENT_CUSTOM_VIEW event_category_id=10 template_name=”recurring-dropdown” order_by=”event_name”] |
|
To note the difference between the 2 replies above, the method @Josh provided will also work but is basically a complete copy of recurring-dropdown which is then customized. The method I provided will allow you to simply use a custom template.php file whist loading all of the original CSS and JS files that the default template uses. Which is best to use, depends on what it is you are are changing. |
|
|
Thank you – the simplest was just copying the full plugin and renaming it. |
@Josh pointed out that the method I mentioned wouldn’t actually work with the current release version of the template. You needed the latest development version for this, which we have just released. This update to the Recurring Events Template includes Multi Event Registration (MER) support (http://take.ms/8y6vR) using the shortcode parameter show_mer_icons=true. You may want to take a look at this version, however automatic updates for this template will not work on this version, so if you would like use this version you will need to manually update. This version works slightly different in that the HTML output is all within a ‘template.php’ file that can be modified (again the other above method will also work with this version). If you are happy with the current version there is no need to update, I just wanted to let you know it had been released. |
|
The support post ‘Is it possible to override the Recurring Dropdown Template?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.