Posted: April 3, 2019 at 7:05 am
|
Hi, |
Hi Kathy, You can do it, but you’ll need to edit the template used to generate the output. Do you already have a custom template for the grid view template in your theme’s root directory? It will usually be named Are you comfortable with PHP and FTP/File manager on your server? |
|
|
I have a child theme with the file ‘ espresso-grid-template.template.php ‘ at the root. I can upload that to my server via Dreamweaver. Not very good with php though. And now I have another issue, hopefully can be solved with custom css, I was happy with how the grid blocks were appearing when I had 3 events, but then I added another row and things got off kilter, if you go to page https://providenceartclub.org/test-expresso/ you can see what I mean. I tried modifying the css but couldn’t figure out how to get them to line up. I think my css knowledge has gotten a bit rusty. |
It’s not a lot to change, more HTML than PHP really. Around line 48 on the default has this:
That’s the code to output the register button, move that to below the P tag containing the dates, like so – https://monosnap.com/file/8bKl7Gy4StN3q1bNRG7hdahSlvpbwD Your register button will now be at the bottom. Adding the excerpt means you grids will all have to be set to use the height of the longest one, which may look messy if you don’t have similar length excerpts for each event? To fix the spacing issue you need to set a height on the grids, for example:
|
|
|
Thanks! I could have sworn I tried the height css before, but must have done something wrong. Your tips worked great. I just had to also change the .ee_overlay so my grey boxes would line up. I would still like to add the excerpt, as it will usually be just one line so shouldn’t look too ragged. |
For the exceprt you can just add So in my screenshot above you could add something like:
Just above line 54 where you added the button code earlier, but it depends on where you want the expert output. |
|
|
Thank you! you’ve been so helpful! |
You’re most welcome ๐ If have a minute we would really appricate if you could share your experience with Event Espresso or provide a review on WP.org. |
|
The support post ‘Show Excerpt in Grid View’ 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.