I have designed my own grid template and I believe I should put all of these files as a new plugin rather than overwritting the original EE addon.
Now, my knowledge of PHP and WordPress core is quite low, so what I did was forking all of the files from the EE Grid Addon, change the names of the files, and change the references in said files.
I activated my plugin and this is the error I get:
The requested EES_Ctriomphe_Grid_Template shortcode file could not be found or is not readable due to file permissions. It should be in […]/wp-content/plugins/eea-ctriomphe-events-grid-view-template//EES_Ctriomphe_Grid_Template.shortcode.php
There is no reference to any EES_Ctriomphe_Grid_Template.shortcode.php
file in my plugin files. I searched the whole thing. The file SHOULD be EES_CTriomphe_Grid_Template.shortcode.php
I’m sure I’m missing something really silly in order to get it to work. Can you help?
You don’t need to duplicate the add-on just to load a custom template, have you made any other changes other than within the template itself?
If not, you can just place a copy of ctriomphe-grid-template.template.php from your templates directory into the root directory of your theme (preferably a child theme).
Then use the template_file attribute on the shortcode to set your own, like so:
Or you can rename your custom template to match the original filename (espresso-grid-template.template.php) and EE will use that in place of the original with just the standard shortcode.
The support post ‘Custom grid plugin registration’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.