Reordering the metadata in single event page revisited

Home Forums Calendar Products Events Calendar PRO Reordering the metadata in single event page revisited

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1124970
    James
    Participant

    Hi,

    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.
    Thanks

    Any assistance would be great.

    Cheers

    James

    #1125395
    Hunter
    Moderator

    Welcome 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!

    #1125423
    James
    Participant

    Hi Hunter,

    Thanks for the clarification, that worked a charm!

    Go ahead and close this thread.

    Cheers

    James

    #1126234
    Hunter
    Moderator

    Will do! Feel free to open a new thread if you have anymore questions or concerns. Have a great week.

    Cheers!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Reordering the metadata in single event page revisited’ is closed to new replies.