Home › Forums › Calendar Products › Events Calendar PRO › Move meta above content in single event
- This topic has 3 replies, 2 voices, and was last updated 10 years, 4 months ago by
George.
-
AuthorPosts
-
December 4, 2015 at 9:45 am #1035612
David
ParticipantI 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?
December 4, 2015 at 10:33 am #1035649George
ParticipantHey @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,
GeorgeDecember 4, 2015 at 11:01 am #1035664David
ParticipantThanks . . . 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.
December 4, 2015 at 11:23 am #1035679George
ParticipantNice! 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 -
AuthorPosts
- The topic ‘Move meta above content in single event’ is closed to new replies.
