Posted: April 24, 2018 at 10:20 pm
Hello! Is there a way to display ONLY the event title within the calendar add-on? Right now it shows both the event title and the datetimes. I did find a previous thread that suggested deleting the event datetimes altogether, but that doesn’t work for me because I also use the events table add-on, for which I do want the datetimes to show. Also, how can I style the font size inside the calendar? Thank you! |
|
Hi Sherry, To change the titles you can use this function: 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/
There are multiple sizes in use, which element are you looking to target? |
|
Hi Tony, the php worked beautifully, thank you so much! In terms of styling the font, I was referring to the font used to list the events, within the calendar. Would that be fc-event-inner? Also, as I progress, I’m finding I have new questions: I’m using the promo add-on, and can’t figure out how to style the output from [ESPRESSO_PROMOTIONS]. Could you point me in the right direction? Also, I’m using the grid add-on to display “featured events”. Is there a way for the shortcode to either return nothing, or return “None at this time”, if we are not featuring any events? Thank you again! |
|
Will change the text size used to list the events within the calendar. The Event Espresso > Promotions > Settings page has two options for changing the style of the Promotions banners, and the same settings automatically apply to the promotions shortcode. If there’s something specific that’s not covered by the options, like text size or font-family, we can point you in the right direction on how to change those with CSS. May I ask what specifically are you looking to change there?
Normally it would return nothing if there are no featured events. |
|
Thanks so much for all the help! For the promotions shortcode, I’m hoping to adjust the width of the box to full width. Right now the sales period is listed above the box, and I’m wondering if there’s a way to move that into the box. I would also like to change the background color. Another new/unrelated question — during the checkout process, there are many buttons that refer to “Event”. Is there a way to remove the word “Event”, and in general modify the buttons? For example: Thank you again! |
|
Can you link me to an event I can use to view this?
For some sections, the ‘Event cart’ string is linked and you can use a single function to change it, start with this function: https://gist.github.com/Pebblo/2873e08d239e5e82435045bf73521770 Then check to see which other strings you want to change.
Yes, you can use this fucntion: https://gist.github.com/joshfeck/e51ac13a3d9fd345ad40 Change line 2 to the URL you want to use and that be used by the button. |
|
Amazing! That was much easier than I imagined, thank you so much! One more string I would like to change is the button that says “Return to Event List” -> “Return to List”. Is this also doable with a single function? I am including an image here showing how [ESPRESSO_PROMOTIONS] displays for me. |
|
For that you’ll need this function: https://gist.github.com/Pebblo/385e46712013a3ee5908#file-ee-site-specific-plugin-php-L7-L11
To make the promotions output full width you can use this CSS:
Moving the dates can be done but it depends what you want to do with them. It may be easier for you to copy the template into your theme and edit the output to suit. To do that you copy:
To the root directory of your theme (preferably using a child theme) and edit the template there. |
|
Okay, I think I’m getting there. For the promo code and ribbon, can we: Like so: LIMITED TIME ONLY! |
|
Hi Sherry, There are a few color options in the Promotions setting page. Beyond those, if you have a hex color code you can add CSS like this:
The other two changes can be made by editing the promotion banner’s template file. Here’s the steps to do that: 1) Like Tony mentioned before, you copy the upcoming-promotions-grid.template.php template from the promotions add-on plugin folder, and put the copy into your active WordPress theme. To move the date, you move this code below the code for the title: Then to change the text, you find this: and change it to this: |
|
PERFECT! Thank you so much for your help! |
|
The support post ‘Calendar Add-on: only show event title’ 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.