Home › Forums › Calendar Products › Events Calendar PRO › Page Customization
- This topic has 5 replies, 2 voices, and was last updated 10 years, 6 months ago by
George.
-
AuthorPosts
-
October 23, 2015 at 12:27 pm #1017413
Caleb
ParticipantI recently purchased your plugin. I am trying to figure out how to change the design of the ‘default’ template for the EVENTS and CALENDAR pages. It currently has a header that I would like to change or remove. Can you help with that?
October 24, 2015 at 6:57 am #1017545George
ParticipantHey @Caleb,
We unfortunately cannot help with customizations, but if you specify what header you would like removed, we might be able to help a little bit 🙂
Can you take a screenshot of the header you want removed? Then, post the screenshot to Imgur.com and share a link to that Imgur image here.
Thank you!
GeorgeOctober 24, 2015 at 7:03 am #1017546Caleb
ParticipantI guess I wasn’t completely clear. I don’t need you to help with the customization necessarily. I’m just trying to figure out where your plugin spits the calendar out to? I know on my website, it goes to allthingsmidmo.com/events, but within the site, I don’t see that “page” to be able to edit, other than the settings within the plugin on that page. Does that make any more sense?
October 26, 2015 at 11:40 am #1018060George
ParticipantI apologize for my misreading your question, @Caleb!
I know on my website, it goes to allthingsmidmo.com/events, but within the site, I don’t see that “page” to be able to edit, other than the settings within the plugin on that page. Does that make any more sense?
Your question definitely makes sense and is in fact a rather common one, because there is no “page” in your admin proper that you can edit for this. In fact, if you were to make a page whose slug was /events/, this could actually cause problems…
The reason our plugin works this way is because a static page would not work nearly as well for the needs of “calendar” features; so we generate what is more like a feed endpoint or API endpoint at the /events/ URL, which allows us to power features like going X months into the future; Y days into the past; etc.
I know that this reply is rather vague; I’m happy to go into as much technical detail about the choice to develop this way if you’re interested, but the long and short of it is that there is no “page” called Events powering this. It’s a dynamically-generated URL endpoint at /events/ (or whatever you set your slug to in the “events URL slug” plugin option 😉 ).
—
So how does this all play into customizing templates?
Well, a lot of template code is still pulled from your theme as expected, like the HTML header and footer and so on. But then there’s a layer of Events Calendar-specific templating that you can learn more about here → https://theeventscalendar.com/knowledgebase/themers-guide/
I hope that my reply here and that guide above will help with customizations!
Cheers,
GeorgeOctober 26, 2015 at 1:03 pm #1018655Caleb
ParticipantYeah, I’ve gone through the Themers Guide and didn’t really see anything. I get it that it’s not a typical page. I am just trying to figure out how to access it so I can get the design in line with the rest of the site.
October 27, 2015 at 11:01 am #1018982George
ParticipantThe methods for accessing and customizing the components of the events template are all described in-depth in the Themer’s Guide – if you’re curious about the specific role of each file in src/views in your Events Calendar plugin files, then for example the main default-template.php file there is probably the best place to start for your needs.
If you have the “Events template” option in your wp-admin set to “Default events template”, this is the template file that will be loaded; so code-specific customizations can start here.
I’ll close up this thread for now since we’re not able to help with those customizations, but I wish you the best of luck with your custom code – be sure to keep good backups of all custom code you write to minimize the risk of losing it!
Cheers,
George -
AuthorPosts
- The topic ‘Page Customization’ is closed to new replies.
