Hiding the Calendar behind a membership page

Home Forums Calendar Products Events Calendar PRO Hiding the Calendar behind a membership page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31921
    Drew
    Member

    I only want members to be able to see my calendar. I can set pages to be hidden or put shortcodes around certain areas. However neither of these work since the calendar generates its own page.

    I can insert this php around areas I want to be hidden to non-members:

    Where would I put this? Is there an easier way to do it?

    I am using Paid Membership Pro to do the memberships.

    #31937
    Barry
    Member

    If you are using default event templates (check Events > Settings > Templates if you are unsure) you could probably insert your code at the top of ecp-page-template.php and ecp-single-template.php.

    Alternatively, if you are using something like the default page template then you could edit that template and combine your code with a tests like tribe_is_event() and/or tribe_is_upcoming() to ensure it only operates on event pages.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Hiding the Calendar behind a membership page’ is closed to new replies.