kaylesimon

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Calendar Title Issues, Replete Theme by Kriesi #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!

    in reply to: Calendar Title Issues, Replete Theme by Kriesi #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.

    in reply to: Event Grid Title Displaying Name of First Event #43021
    kaylesimon
    Participant

    Guys, the FAQ is written in such a way that only a coder can understand what they are telling people to do, with NO examples. At least give us a few examples of what we may see when we find the_title(), and what it would look like after we add the conditions, showing where they might be added, etc. What seems so EASY to you guys could be easy for us, too, if you’d explain it a little better. Instead I’m told to spend more money just to get a page title to work with the plugin? I am just disappointed…is it really that hard to give us a recipe (as in look for something like this, replace it with THIS…or where you see THIS, add this right under it…or whatever) but your FAQ doesn’t do it that way, it just says “use these conditionals.” Leaving us non coders stuck googling “how to add conditionals to a function.” Come on. If this happens that often that you have to write an FAQ, help people out just a bit more, please?

Viewing 3 posts - 1 through 3 (of 3 total)