Posted: May 5, 2017 at 8:23 am
|
Hi One the grid view plugin, is it possible on hover over to show the available places as well as the event title etc Thanks |
Hi Jonathan, You’ll find some example code with instructions in the documentation: https://eventespresso.com/wiki/events-grid-view-template-add-on/#ee4customizations |
|
|
Thanks Josh Would I add this into a site specific plugin that I have created? Just a little confused as to where I place the $remaintext then? Thanks |
Hi Jonathan, The documentation says:
and
I can show you exactly where to put the $remaintext code if you know where you want the text to be displayed. |
|
|
Hi Josh I would just want it underneath all the default text that is already there on the grid. Do I need to copy the espresso-grid-template.template.php code into the site specific plugin that i created? Thanks |
Then you put
No. You copy the entire file (espresso-grid-template.template.php) and put it into your active WordPress theme folder. |
|
|
Hi Josh Can I just confirm The line of code starting echo”<stong…… Is this within the espresso-grid-template.template.php? So I basically copy this over and add that line underneath? The entire file, do I just literally copy that into the theme folder – does it need to go in a subfolder or in the root of the theme folder? Thanks – sorry just not completely understanding it |
Yes. That’s line 63.
Yes you copy the entire template file into the root of the theme folder. |
|
|
Hi Josh There is no exact match on line 63 as above – this is where I have put it within the code but it doesn’t appear to be working echo ‘<b class=”title”>’ . $post->post_title. ‘</b><br />’; echo ‘<b class=”button-text”>’ . $button_text . ‘</b>’; Thanks |
This code:
Should actually be:
I’d recommend adding a br at the begging to make sure the text is on its own line:
The wiki posts needs updating to prevent the browser from parsing the strong tags in the example. The above won’t fix the problem if its not working but you’ll need it anyway. Did you add the code to generate the |
|
|
Thanks Tony Its now working |
You’re most welcome. |
|
The support post ‘Grid View – Available places’ 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.