• Resolved mspreer

    (@mspreer)


    Hello there,

    my english maybe not the best, please bare patient with me.

    My theme has a class called “banner-sub-title”. Usually it will display the title of a page in there. This will also work for any event in the event-view of The event Calendar.

    Unfortunately there will be no page title when I am in calendar view (the whole calendar).
    Basically I am asking for a solution, so that I can display the content of the events calendar class “tribe-events-page-title” in the “banner-sub-title” class of the theme I am using.

    I have tried to find something in the Themer’s Guide and I can see that I can customize the Event Calendar theme in a way, that tribe-events-page-title will not be displayed within the events calendar template which might be useful for me. But it doesn’t solve my problem.

    Can you help me?

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @mspreer,

    Great question! You can use something like this in your page template to output the event title:

    <h2 class="tribe-events-page-title"><?php tribe_events_title() ?></h2>

    Will that work for you? Please let us know!

    Cheers,
    Geoff

    I think he means that when you go to yourdomain.com/events or yourdomain/events/category and click through the months, the URL and page title in the tab changes, but the page title in the H2 tag doesn’t.

    Coincidently, I just fixed this by copying month/content.php to my own theme and putting this code at the bottom.

    <script>
    $('h2.page_title').html('<?php tribe_events_title() ?>');
    </script>

    This changes it on the fly when you advance up and down.

    For @mspreer, you would change this to:

    <script>
    $('.banner-sub-title').html('<?php tribe_events_title() ?>');
    </script>

    Sweet, thanks for chiming in, Mark!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calendar View Sub-Title’ is closed to new replies.