Support

Home Forums Event Espresso Premium Custom grid plugin registration

Custom grid plugin registration

Posted: February 11, 2021 at 10:10 am


ComedieTriomphe

February 11, 2021 at 10:10 am

Hi,

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?

Here are the files:

https://inthemood.gaia.bysh.me/owncloud/index.php/s/amRdYB5NAyMA4Lq

Thank you!


Tony

  • Support Staff

February 11, 2021 at 1:30 pm

Hi,

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:

[ESPRESSO_GRID_TEMPLATE template_file=ctriomphe-grid-template.template.php]

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.


ComedieTriomphe

February 16, 2021 at 10:04 am

Oh, great, that did it! Thank you :).


Tony

  • Support Staff

February 16, 2021 at 10:23 am

You’re most welcome 🙂

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.

Event Espresso