Best way to add ads? Template?

Home Forums Calendar Products Events Calendar PRO Best way to add ads? Template?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1078570
    Michael Silvia
    Participant

    Looking for monetize my calendar a little. What is the best way to add short code or Adsense to the calendar? I’m sure I can just add to the templates, but I guess I’m:

    1. Suggesting a place in the Admin area to add code (common areas)

    2. Asking, what is the best templates to edit?

    #1079736
    Geoff
    Member

    Hey Michael, that’s a great question.

    I think the easiest way to go would be a customizing the calendar template itself. Our Themer’s Guide is a great place to start with template overrides, but it basically boils down to this:

    • Make a copy of the default-template.php template. It’s located at /plugins/the-events-calendar/src/views/default-template.php
    • Make a new folder in your theme file called tribe-events
    • Drop the copied default-template.php file in there

    Now that the template is in the theme, you can modify it to suit your needs. In this case, drop in the ad script where you would like it to display and it will do so on the main calendar template.

    You can repeat this process on the single-event.php file as well to display ads on the event posts themselves.

    Will this work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #1086254
    Support Droid
    Keymaster

    This 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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Best way to add ads? Template?’ is closed to new replies.