Home › Forums › Calendar Products › Community Events › Template file for community/add page?
- This topic has 7 replies, 4 voices, and was last updated 9 years, 6 months ago by
Josh.
-
AuthorPosts
-
October 3, 2016 at 10:29 am #1171858
Josh
ParticipantCan someone please tell me what template file I need to create to style the /community/add page?
October 3, 2016 at 11:07 am #1171878Geoff
MemberHey Josh — hope you had a great weekend!
Great question. The main template file is called default-placeholder.php and can be found here:
/wp-content/plugins/the-events-calendar-community-events/src/views/community/default-placeholder.php
The trick with Community Events templating is that the main template actually consists of all the files located in the modules directory, which is located in the same place as the template. Open that up and you’ll see all the various modules the main template uses, from the event editor to the venue editor.
Does this help answer your question? Please let me know. 🙂
Cheers!
GeoffOctober 3, 2016 at 12:43 pm #1171919Josh
ParticipantOK, then what is the best way to simply let the template site inside some sort of div or some formatting? Because right now it fills the whole width of the page when my normal content has spaces on the right and left.
Thanks!
October 3, 2016 at 3:04 pm #1171978Geoff
MemberHi Josh, thanks for following up!
If it was me, I would likely start by trying to override the existing CSS instead of overriding the entire templates.
We have a tutorial that includes tips for locating the calendar classes that is a great starting point:
Once you have identified the classes to change, you can add those directly to your theme’s style.css file or using the Simple Custom CSS plugin to inject them.
Will that work for you? Please let me know!
Cheers,
GeoffOctober 3, 2016 at 6:28 pm #1172023Josh
ParticipantOK, so I copied the modules to my theme community folder (depicted in the attached image).
What I don’t understand is why the default-template.php properly has the gutters on either side of my content but the default-placeholder.php does not.
October 4, 2016 at 7:49 am #1172264Geoff
MemberOh, I see what you’re saying — thanks for clarifying Josh! My bad here, because I gave you bad advice up front.
The template you’re looking for is actually the edit-event.php file in that same directory. That has all the markup for the community/add screen.
Sorry about that and I hope this makes a lot more sense as you add gutters to the screen.
Cheers!
GeoffOctober 26, 2016 at 9:35 am #1183257Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Template file for community/add page?’ is closed to new replies.
