Home › Forums › Calendar Products › Events Calendar PRO › Embedding Calendar on a page
- This topic has 10 replies, 4 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
January 22, 2014 at 2:00 pm #95733mozakdesignParticipant
Hi .. I want to embed the calendar (http://dsno.org/events/upcoming/) on the homepage. Is there some code / php cal I could use?
Thanks
January 22, 2014 at 6:16 pm #95860Julie KuehlParticipantHi mozakdesign,
Our plugin does not use shortcodes, so it’s not possible to add the calendar to a homepage. However, if your homepage supports widgets, you may be able to display the Mini Calendar there, if that suits your purpose.
Does that answer your question?
— Julie
January 22, 2014 at 6:39 pm #95879mozakdesignParticipantBut I need the list view as shown on the page. can you point me to the php file that causes the execution of the code creating the calendar page
http://dsno.org/events/upcoming/
Thanks
January 23, 2014 at 2:04 pm #96292mozakdesignParticipantHow about this:
What php code would I need to copy to
1) execute the Events List widget as a php call and
2) alter it to also display the excerpt?January 23, 2014 at 5:11 pm #96320Julie KuehlParticipantHello mozakdesign,
That sounds like a really cool idea, but what you are trying to do is outside of the way the plugin was designed. Complex customizations like this are beyond the scope of our support. However, we do provide a Themer’s Guide (https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/) and Documentation (http://docs.tri.be/) to help you make those changes yourself. If that is beyond your skill set, we may be able to provide a list of developers who could potentially help you.
Good luck with your project!
— Julie
January 23, 2014 at 9:22 pm #96364mozakdesignParticipantI’m almost there … what is the php code to access the excerpt? I’ve got everything else
January 23, 2014 at 9:44 pm #96367mozakdesignParticipantwould this do it?
<?php echo tribe_events_get_the_excerpt() ?>
if I add that to the list-widget.php ….
January 27, 2014 at 7:42 pm #97549Julie KuehlParticipantHello mozakdesign,
Looks to me like you’re on the right page there. And from the looks of your website, I’m thinking you got it working. Nicely done!
— Julie
February 8, 2014 at 4:30 am #102277efromdcParticipantMozakDesign – Can you tell me what files changed to make the homepage display events? Step by step please?
February 12, 2014 at 6:45 pm #104000mozakdesignParticipantSure thing.
1) I installed a plugin called Custom Sidebars and make the sidebar “EventsListHome”
2) I place the “Event List” widget in the new sidebar
3) I added to my homepage php code the following:
<?php dynamic_sidebar( ‘EventsListHome’ ); ?>
4) in the pro list-widget.php I added <?php the_excerpt(); ?>…
<?php if ( $phone && tribe_get_phone() != ” ) { ?>
<span class=”tel”><?php echo tribe_get_phone(); ?></span>
<?php } ?>
<div class=”excerpt”>
<?php the_excerpt(); ?>
</div></div>
July 7, 2015 at 6:30 am #983056Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Embedding Calendar on a page’ is closed to new replies.