Posted: September 20, 2022 at 4:58 pm
Hello We tend to use long titles for our events and find that when an attendee registers for multiple events, it might be better if there was more space between events as they apear in the cart. I am hoping you can provide some easy css code to create an extra space between events in the cart – I will provide a screen shot |
|
This reply has been marked as private. | |
PS: Wondering if another alternative would be code so that the longer titles wrap on to the next line, keeping them away from the numbers and icons on the cart? |
|
Hi there, So by default, EE tries to not override theme styles for most of the elements we output. We do this so that our output mostly matches the rest of your site, so when your theme styles tables in a particular way we don’t override those styles which is what is happening here. The cart output is in a table and for many themes will look something like this: https://monosnap.com/file/ZkUVbFog1j3idkflF60IFxkJByuYGZ Which makes it a little clearer which section if for which event, on your site there are no table borders and row heights are reduced to be fairly close which then leads to the above. You can try adding some additional styles to help with this, for example:
Which should set the event title row line height to be bigger and sets the width to be 50% to avoid showing the event title over the other fields. Add that to Dashboard -> Appearance -> Customize -> Additional CSS. Does that help? |
|
This reply has been marked as private. | |
You’re missing the The You’ll also see Both of those are important in CSS so missing either will prevent it from working 🙂 |
|
Ahh yes, sorry Tony (I need to get some glasses). I have added this and it has worked. Wondering though whether we can add a line space between the subtotal for the last event on the list and the Event Cart Subtotal information just to separate this a bit? |
|
This reply has been marked as private. | |
Hi Tony – I would grateful if you could asl provide the code the implement the same to the checkout apge and also hide the ticket name and description details like we did with the cart. I will provide a screenshot of the checkout as it is now |
|
This reply has been marked as private. | |
Something like this:
Will add spacing to the subtotal. Wrt to the checkout page, is this what you are looking for?
|
|
Thanks Tony – that does it. Hoping also that you could provide the code to hide the ticket details on the checkout page like we did with the cart. Regards, Joe |
|
Sorry, meant to add that into the last reply, I would use something like this:
|
|
September 23, 2022 at 10:15 pm Thanks Tony – would be great if you could also let me know the additional code to make the cart table cells borders show (very light border). |
|
Adding a border to all tables or just the cart table? All tables:
Specifically the cart table:
If you are adding borders you’ll likely find you’ll need to change the previous CSS I gave you so that the spacing doesn’t alter how the cells look for the event name. |
|
This reply has been marked as private. | |
Do you mean something like this?
|
|
That’s great, many thanks |
|
You’re most welcome 🙂 |
|
This reply has been marked as private. | |
I’m not sure why PHP8 would cause that, its from some CSS on the event cart setting a min width and the content having an overflow of hidden. Adding this should fix it:
Sure:
Like this?
|
|
This reply has been marked as private. | |
This reply has been marked as private. | |
Looks like you’ve already removed those, correct? For the text paragraph highlighted, you can use:
This looks done already 🙂
You can remove that with a snippet:
You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/
Sure:
|
|
This reply has been marked as private. | |
This reply has been marked as private. | |
No. CSS doesn’t slow down a site, at least not with processing requests. You are waiting for the server to process the request and return a response, generally if that’s slow, its due to the server itself.
It should do BUT… the question I would ask here is do you NEED all of that data within EE4? The reason I ask is what we some users do is basically archive EE3 to keep their historical data and move forward with a fresh version of EE4. |
|
This reply has been marked as private. | |
Hi Joe, Can you link me to an event I can view this on, I’ll see what I can do. It’s a little more tricky to do this one is separate table rows, can be done with margins but then may be a little more ‘brittle’ on other devices, but we’ll see. |
|
This reply has been marked as private. | |
I think its time for a change of angle here, hacking up the table with CSS to move stuff around will eng up fragile. So rather than do that, remove the CSS you are using to hide the ticket description, hide the event row and replace the ticket description with the event name: CSS using something like:
Then add a snippet like this: https://gist.github.com/Pebblo/ed134f805973770e53b7506d50664b0a You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ To output something like this: https://monosnap.com/file/p1M8w4VAABmqaFHdA8Vbhh0ZY9hIuX (That screenshot is taken from one of my test sites, but you should get a similar output) |
|
This reply has been marked as private. | |
Hello We are hoping you can provide css to hide the “Price includes taxes” as it appears in the ticket selector and registration form. I will provide screen shot below Regards |
|
This reply has been marked as private. | |
Hi there, My apologies, I missed your reply in your asking for this and have merged your threads together. To hide that section in the ticket selector you can use:
Hiding that section in the registration form isn’t as easy as we don’t have an selector specific for that text. Will changing it to ‘GST’ still work? |
|
In fact, you can use almost the same snippet to change the text to use GST or remove it: https://gist.github.com/Pebblo/4346f1439ca349dea46c9638bcda5ef1 That snippet will change the text to “* price includes GST”, or you can change Line 8 to be:
Which will remove the text from the output. |
|
The support post ‘Adding Space to EE4 Cart’ 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.