Support

Home Forums Event Espresso Premium changing a couple layout things

changing a couple layout things

Posted: November 16, 2016 at 3:51 pm

Viewing 4 reply threads


Bill Pfeiffer

November 16, 2016 at 3:51 pm

hello. we are doing some tidying and would like to:

1. remove the registration phone number from the event listing page.
http://billpfeiffer.org/upcoming-events/ but not from the individual event

2. remove the link to the events listing page from the widget titles
http://billpfeiffer.org/core-programs/core-program-wei/

3. add the view details button to the bottom of the widget under the event description.

🙂 emily sparkle for billpfeiffer.org


Bill Pfeiffer

November 22, 2016 at 2:49 pm

i would hide the phone number with css, but it’s not in a named span or div.

thank you.


Josh

  • Support Staff

November 22, 2016 at 2:58 pm

You can still target the phone number with CSS, for example, like this:

.page-id-1402 .event-content > p span {
display:none;
}


Bill Pfeiffer

November 26, 2016 at 1:06 pm

true, but that still leaves a large gap where the phone number once was. any way to change the widget?


Tony

  • Support Staff

November 28, 2016 at 10:39 am

Hi there,

To completely remove the event phone number from the output you will need to take over the template yourself. The template used is:

\event-espresso-core-reg\public\Espresso_Arabica_2014\content-espresso_events-details.php

You can place that template within your themes (preferably a child theme) root directory and edit the custom template there, for example using is_single() within the if statement for the phone number to only output the phone number if is a single event post.

You can’t edit the default widget using a template in the same way as above, you would need to create your own version of the widget, edit the output of that widget and use it in place of the original. I have previously provided an example of how to create a ‘Custom’ version of the default widget here:

https://gist.github.com/Pebblo/d0d5f485ae0599e56e20

You can change the output to suit and then use that widget on your site.

Viewing 4 reply threads

The support post ‘changing a couple layout things’ 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.

Event Espresso