Template file for community/add page?

Home Forums Calendar Products Community Events Template file for community/add page?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1171858
    Josh
    Participant

    Can someone please tell me what template file I need to create to style the /community/add page?

    #1171878
    Geoff
    Member

    Hey 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!
    Geoff

    #1171919
    Josh
    Participant

    OK, 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!

    #1171978
    Geoff
    Member

    Hi 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:

    Using Google Chrome Developer Tools

    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,
    Geoff

    #1172023
    Josh
    Participant

    OK, 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.

    #1172264
    Geoff
    Member

    Oh, 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!
    Geoff

     

    #1183257
    Support Droid
    Keymaster

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Template file for community/add page?’ is closed to new replies.