Posted: August 10, 2014 at 5:43 am
|
Hi guys |
Hi, Try adding this to your child theme’s functions.php file or a site specific plugin: https://gist.github.com/lorenzocaum/ae1d5cb69d23152b4262 — |
|
|
Ok thanks, I’ve done this – now is there another piece of code I can add in to remove the datetimes from the page completely? I’d rather just have the events description followed by the ticketing options. |
Try this in your child theme’s stylesheet or a plugin like My Custom CSS or Reaktiv CSS builder: .single-espresso_events .event-datetimes {display:none;} — |
|
|
Hi add_filter (‘the_content’, ‘my_remove_event_tickets’, 100 ); // remove tickets // add tickets after the content |
|
Hi, It’s unusual for code to work initially and then break like that. Can you provide a link tot he page in question which is broken please? |
|
Hi Dean Thanks |
Hi fifthsense, I’m afraid that the code that Lorenzo shared with you is incomplete in that it does not check for the Event Espresso post type. Here is an updated snippet that checks for the post type first before altering the order of the content: https://gist.github.com/joshfeck/1151c89082ccb5c0b478 It avoids the errors you saw because it checks for the correct post type before altering the content. |
|
|
Hi Josh |
|
Ok that seems to be fine, thanks very much Josh. |
You’re welcome Duncan. |
|
The support post ‘Place event description before ticketing/datetimes on single event page’ 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.