Calendar Title Issues, Replete Theme by Kriesi

Home Forums Calendar Products Events Calendar PRO Calendar Title Issues, Replete Theme by Kriesi

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43020
    kaylesimon
    Participant

    Yes, I saw the FAQ on this at https://theeventscalendar.com/faq/the-calendar-page-title-shows-title-of-an-event/. I feel like it’s written for people who understand how one can “wrap” something in a “conditional.” I have no idea where to put the conditionals. And that’s after I find the_title(), which for the Replete theme, I have been thus far unable to do. I have a message on Kriesi’s forum asking for that info and I’m sure I’ll get a response, but could I see an example, please, of what to do exactly once I find the_title()?

    #43028
    kaylesimon
    Participant

    For anyone using the Replete theme, here is the solution from the folks at Kriesi themes:

    We use a custom function called avia_title(); to output the title on pages. Kriesi calls it in page.php with:
    echo avia_title();
    By default it will output the page title of the current page (we use the get_the_title() function) but you can use a title argument/parameter to change the title. So replace the line I posted above with:
    if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
    $aviatitle = ‘Custom text’;
    } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
    $aviatitle = ‘Custom text’;
    } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
    $aviatitle = ‘Custom text’;
    } elseif( tribe_is_event() && is_single() ) { // Single Events
    $aviatitle = ‘Custom text’;
    } elseif( tribe_is_day() ) { // Single Event Days
    $aviatitle = ‘Custom text’;
    } elseif( tribe_is_venue() ) { // Single Venues
    $aviatitle = ‘Custom text’;
    } else {
    $aviatitle = get_the_title();
    }

    echo avia_title( array(‘title’=>$aviatitle) );
    ________________
    and instead of “Custom text” insert your hardcoded text or call a function to retrieve the right title.

    #43058
    Barry
    Member

    Hi kaylesimon – thanks for updating us with the solution. Do you need any further support on this one or are you content with the theme vendor’s solution?

    #43067
    kaylesimon
    Participant

    I’m great with the solution. I would just note for those following in my footsteps that of course ‘Custom text’ can be replaced with get_the_title() whereever you do, in fact, want the title to be the Single Event or Venue, etc. I hope that a few of these solid examples could be added to your FAQ; while they will vary depending on the theme, it really helps those of us who don’t know PHP well if we can see a few examples of what has worked…it’s easier to extrapolate from a real life example (or two or three) than to figure out what you mean in your FAQ. (although rewriting the plugin so we can override the title and put what we want there, or use a shortcode to build the page with whatever title we want on it, would also be a great option.) Cheers!

    #43071
    Barry
    Member

    That’s a good point and we’ll definitely consider that as we build and revise our support resources.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Calendar Title Issues, Replete Theme by Kriesi’ is closed to new replies.