Display the events list in Grid View
-
How can i display the events list in a grid view with the date and time below the thumbnails. More like thumbnail for an event the description and then the dates in that order from up to bottom.
-
You’d need to incorporate your grid HTML and CSS with Events > Settings > Formatting > Events. If you don’t yet have any grid HTML / CSS, this may help:
https://www.w3schools.com/css/css_rwd_grid.aspi have writen some html i dont really need alot. i want them to be displayed like this.. a thumbnail then the description and date below.. how do i integrate that into the plugin?
thank you for the help.Thank you to Caimin for pointing out that excellent tutorial about CSS and “grid” layout with tables.
If you are not very experienced with CSS, and this plugin it can be difficult to start.
This plugin has a lot to offer…. BUT that means there is a lot to learn.
And with that a lot you can do.1.) Where to put the “code” or “html”…
In Settings -> Events
Events Manager Options
–> Formating
click ->Events (it expands to “Events Page”)
go down to
— >”Default event list format”That is where you would put in your “html” code and “Placeholders”
<div class="row"> <div class="col-3ex exmenu" > <ul> [events_list limit=3] <li> <div align="center" style="margin-right:5px;text-align: center;">#_EVENTIMAGE{125,69}<br /> <span style="font-size: 12pt;font-weight:bold;">#_EVENTNAME</span><br> <span style="padding:2px;text-align: center;border:solid black 1px;border-radius:4px;background-color:#e6e6e6;font-color:#000000;font-size:16px;font-weight:bold;">#_EVENTDATES</span> </div> </li> [/events_list] </ul> </div> </div>
If you don’t know about placeholders… you need to learn and know them…
https://wp-events-plugin.com/documentation/placeholders/Now you also need to know about CSS and where to put it for all the above to work.
Put the CSS in your Child Theme…. or use a CSS Editor like the one in JetPack, or other type plugin.So for the above to work you would use CSS like this below.
<style>* { box-sizing: border-box; } .row::after { content: ""; clear: both; display: table; } [class*="col-"] { padding: 15px; } .col-3ex {width: 85%;} .exmenu ul { list-style-type: none; margin: 0; padding: 0; } .exmenu li { padding: 8px; margin-bottom: 7px; margin-right: 5px; background-color: #33b5e5; color: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); border:solid black 2px; border-radius:10px; display:inline-block; min-width:260px; max-width:260px; vertical-align:top; } .exmenu li:hover { background-color: #0099cc; }
</style>
ALWAYS make backups of your files and database before editing files…
while this won’t hurt your database… it is a good practice to remember.If you haven’t already… learn about the shortcodes will help…
https://wp-events-plugin.com/documentation/shortcodes/And the documentation…
https://wp-events-plugin.com/documentation/ok let me try this will update you asap. thank u in advance.
thx @robswaimea, But what u have given here is just repeating the same event three times then puts the next event below it and still shows 3 of those. how can we solve this so that it displays the events one after another in a grid form.
I couldn’t specifically say….
I have thousands of events, also recurring events…I double checked the code I gave you above… and it works fine.
It shouldn’t show more than three events because in the line of code above it is set at three…
[events_list limit=3]
Try… in a regular post putting
Just the html code in.. Obviously using the “text” editor not the visual editor.
And see if that works.<div class="row"> <div class="col-3ex exmenu" > <ul> [events_list limit=3] <li> <div align="center" style="margin-right:5px;text-align: center;">#_EVENTIMAGE{125,69}<br /> <span style="font-size: 12pt;font-weight:bold;">#_EVENTNAME</span><br> <span style="padding:2px;text-align: center;border:solid black 1px;border-radius:4px;background-color:#e6e6e6;font-color:#000000;font-size:16px;font-weight:bold;">#_EVENTDATES</span> </div> </li> [/events_list] </ul> </div> </div>
ok let me try that
it does not work… it shows nothing
Can you post a link where you’re using this code? It might help us see what’s wrong.
This code has helped a lot, the individual events are styled the way I need. The only problem is each one is displayed in block format, stacked on top of each other. How can I get them inline, one right next to the other on the same line?
I’ve tried messing with the CSS but nothing I try works.It should go left to right..
1 2 3if you can post a link I can take a look.. most likely a css issue.
You so you guys know.. I am not part of support.. just poke my nose in to help out.
Actually I just figured it out, it was my boneheaded mistake! Sorry for updating the thread with a useless question.
Problem was, I’m using X-Theme with Cornerstone, and I inserted the html code in a text field instead of a raw content field.
But it’s all working fine now.
Thank you for your code and poking your nose in to help, Robswaimea!
And thanks to caimin_nwl for directing me to this thread!https://tbdev.lookali.de/events/ this the out put of the code…. appearance not the same just changed colors. a and z as pass and name
- This reply was modified 7 years, 10 months ago by kabengwa.
i think i know know the problem.. i was looking at it and ingnoring it for a long time but the problem was with the col width which was 85% each which means we cannot have more than one on the same line. However it is now not responsive.
- This reply was modified 7 years, 10 months ago by kabengwa.
- The topic ‘Display the events list in Grid View’ is closed to new replies.