Support

Home Forums Event Espresso Premium Please help me with displaying available spaces and read more links

Please help me with displaying available spaces and read more links

Posted: February 26, 2014 at 8:29 am


Drio LLC

February 26, 2014 at 8:29 am

1–On the registration page, is there a way not to show available spaces? I still want there to be a limit of 24 registration spots, but I don’t want that information to be public.

2–I asked about the “read more…” link before, but my question was not answered. I don’t want it to just break the text and continue when you click the event. I want it to break the text AND say “read more…” so the viewer knows that there is going to be more when the event is clicked. Right now, it just looks like my event descriptions are short and there is no suggestion that the description will be continued upon clicking… How do I fix this?


Josh

  • Support Staff

February 26, 2014 at 9:03 am

Hi Suzanne,

One way to hide the available space text is to hide it with CSS. This is something that can be added to your custom stylesheet:

.available-spaces {
display:none;
}

If you do not have a custom stylesheet, I can recommend installing the Reaktiv CSS Builder plugin to add one.

With #2, Event Espresso doesn’t append a read more link to the short event description. This is something that can be added by editing the event_list_display.php template that can be found in its /templates folder.

In that template there’s a line of code around line 71 that says:

<?php echo espresso_format_content($event_desc); ?>

That’s the code that displays the short description. The following can be added immediately after it to display a read more link:

<a class="read-more" href="<?php echo $registration_url; ?>">Read More</a>

The event_list_display.php file can be copied over to your active WordPress theme’s folder to prevent it from being overwritten on an update of Event Espresso.


Drio LLC

February 27, 2014 at 11:40 am

Josh–
Thank you so much for your help. After I download, install, and activate the plug-in, what is next?

Also, for #2, I do not know where to find the folder you are talking about.


Lorenzo Orlando Caum

  • Support Staff

February 27, 2014 at 11:47 am

Hi Suzanne,

You would copy the CSS styling that Josh shared earlier into CSS Builder section. Here is a screenshot of what that looks like:

http://wordpress.org/plugins/reaktiv-css-builder/screenshots/

The event_list_display.php template can be found here:

wp-content/plugins/event-espresso/templates

We recommend moving a copy of the file to this location:

wp-content/themes/yourthemefolder

This will ensure that you customization is not lost on a future update of Event Espresso.


Lorenzo


Drio LLC

February 27, 2014 at 4:49 pm

Lorenzo–
Updated the read more link, thanks! Also copied the CSS styling from Josh into the CSS Builder section.

But I am not seeing any changes–I can still see ‘Available Spaces’.


Lorenzo Orlando Caum

  • Support Staff

February 27, 2014 at 5:07 pm

Hello again,

Could you share a link to your event page so I can have a look?


Lorenzo


Drio LLC

February 27, 2014 at 5:53 pm

http://capitalwineschool.com/new/?page_id=81


Lorenzo Orlando Caum

  • Support Staff

February 27, 2014 at 8:22 pm

Thanks Suzanne!

Could you please update the CSS to this (spaces-available –> available-spaces):

.available-spaces {
display:none;
}

It will then disappear: http://cl.ly/image/2V3C3R3r3W3T


Lorenzo


Drio LLC

February 28, 2014 at 10:53 am

Great! That works! Thank you!

The support post ‘Please help me with displaying available spaces and read more links’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Drio LLC 6 years, 1 month ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!