Move meta above content in single event

Home Forums Calendar Products Events Calendar PRO Move meta above content in single event

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1035612
    David
    Participant

    I am looking to simply move the meta data on a single events page above the content information. I am familiar with CSS and HTML, but new to java script and told that is the way to go. I am using the events calendar pro with Genesis/Dynamik framework and theme.

    I am looking to place this div ‘.single-tribe_events .tribe-events-event-meta’ above the ‘.single-tribe_events .tribe-events-content’

    Is there a simple way to just add javascript to the Dynamik custom option?

    #1035649
    George
    Participant

    Hey @David,

    Doing this stuff may indeed be possible, though these sorts of customizations and layout tweaks are not something we can help with. In general, however, one really helpful resource is our “Themer’s Guide” here → https://theeventscalendar.com/knowledgebase/themers-guide/

    That will show you how to make custom Event Templates, which should be quite helpful.

    While I cannot give complete examples (see the “Product Support” section of our official terms and conditions for a distinction about what we can support and cannot support → https://theeventscalendar.com/terms/), if you head to src/views/single-event in your The Events Calendar plugin files, you can see where that “tribe-events-event-meta” DIV is generated.

    This DIV is generated by blocks of code that look like this:


    <!-- Event meta -->
    <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
    <?php tribe_get_template_part( 'modules/meta' ); ?>
    <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>

    So, if you move these meta-related blocks of code, it will move that “.single-tribe_events .tribe-events-event-meta” div you mentioned in your post 🙂

    I hope this helps!

    Best of luck with your customizations and project,
    George

    #1035664
    David
    Participant

    Thanks . . . not sure why playing with the php scared me. Figured it out! Now I just have to add the new file to my theme files so it doesn’t get overwritten.

    #1035679
    George
    Participant

    Nice! Glad this information helped; that themer’s guide should help a ton with moving the customizations into your theme. I’m perhaps a little biased, but in my opinion it’s the sort of thing where once you do it one time, the system sort of “clicks” and is much easier to work with from there 🙂

    Cheers!
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Move meta above content in single event’ is closed to new replies.