Home › Forums › Calendar Products › Events Calendar PRO › Reordering the metadata in single event page revisited
- This topic has 4 replies, 3 voices, and was last updated 9 years, 10 months ago by
Hunter.
-
AuthorPosts
-
June 10, 2016 at 4:12 am #1124970
James
ParticipantHi,
I asked in a different post about reordering the metadata in a single event with the Avada theme. At the time I was asked to contact Avada as it would be something they would need to looking into.
Previous Posts: Reordering the metadata in single event page? and Metadata “blocks” on single event page?
They got back to me after having a look and said I needed to contact you guys.
Email content is as follows;
Hi James,
Please contact Events Calendar regarding this change.
The change should be done via hooks, however the way the class is written in this case makes that a bit more difficult.
What you want to do is to remove:
Tribe__Events__Pro__Single_Event_Meta–>additional_fields action from tribe_events_single_event_meta_primary_section_end
Then add action to – tribe_before_get_template_part
However due to the way the class is created, that becomes more difficult.
If you contact Events Calendar they should be able to assist you with that.
Alternatively, you can use a template override (but its better to use hooks where possible).
To use a template override, go to the-events-calendar/src/views/modules/meta.php
Copy that to your child theme (or parent theme), like:
Avada-child-theme/tribe-events/modules/meta.php
Then edit that file and find:
do_action( ‘tribe_events_single_event_meta_primary_section_end’ );
Move that line further up in the page to where you would like it to appear.
ThanksAny assistance would be great.
Cheers
James
June 10, 2016 at 2:14 pm #1125395Hunter
ModeratorWelcome back James,
As they mentioned, the file you’ll need to edit/overwrite is /the-events-calendar/src/views/modules/meta.php. Copy line 49 and paste it to line 43 and the ‘Additional Fields’ should appear below the ‘Details’ section.
Don’t forget to save it in your tribe-events folder inside your theme folder to avoid losing customizations. Please follow our Themer’s Guide when making these customizations 🙂
Good luck and thank you again for choosing PRO!
June 10, 2016 at 3:10 pm #1125423James
ParticipantHi Hunter,
Thanks for the clarification, that worked a charm!
Go ahead and close this thread.
Cheers
James
June 13, 2016 at 11:10 am #1126234Hunter
ModeratorWill do! Feel free to open a new thread if you have anymore questions or concerns. Have a great week.
Cheers!
-
AuthorPosts
- The topic ‘Reordering the metadata in single event page revisited’ is closed to new replies.
