Events page showing "Blog Archives" as title

Home Forums Calendar Products Events Calendar PRO Events page showing "Blog Archives" as title

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1006375
    Lara
    Participant

    I have read dozens of forum postings here and on my theme’s forum. I’m using Mixin theme. I’ve tried several fixes but none have worked. I’m obviously modifying the wrong file.

    My Calendar page shows “Blog Archives” instead of “Calendar”. I think it is because Events Calendar is essentially a feed of custom posts and the theme thinks it’s a bunch of post archives. But I don’t know how to fix it. Please see the development site I listed.

    When I revert the theme to TwentyFifteen, the orange bar “title/section” doesn’t appear at all so it’s a non-issue. Hence, I’m fairly certain it’s my theme and I know you all don’t support theme issues but could you please just tell me how to change the feed so the theme displays the events slug as the title?

    Thank you!

    #1006477
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    I visited your site and see what you mean.

    That coding is outputted by your theme so the change would have to be made there to the title function.

    You can use the following conditionals to prevent “Blog Archives” from showing and instead put Calendar in its place.

    https://gist.github.com/jo-snips/2415009

    Let me know if you have any follow up questions.

    Thanks

    #1006546
    Lara
    Participant

    Brian –

    Thank you. I’m still a bit confused. I saw this code in another forum post but it didn’t make sense to me. Where does this go and how does it affect the page title/section title?

    Thank you.

    #1006969
    Brian
    Member

    Hi,

    The coding goes in your theme. I do not know how your theme creates the titles, but you would use the conditionals to change the title output.

    It is not an advanced level activity, but does take some knowledge of php.

    The best I can do on this is provide some css that would hide it on the Events Views.

    Let me know if you would like me to provide that.

    Thanks

    #1007684
    Lara
    Participant

    Here’s how I fixed it in case this helps anyone in the future. I really only needed to know if we were on a page that showed a calendar. My theme uses a file called page-title.php to determine the page title. I added the following code to it:

    if( tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_map() ) {
      $title = "<h1>Calendar</h1>";
      } elseif( tribe_is_past() || tribe_is_upcoming() ) {  
      $title = "<h1>Calendar</h1>";
      } else {
    } 

    I probably could’ve done it in one statement rather than the elseif…else but I wanted some flexibility for later if I decide to change page titles on certain types of display.

    #1007851
    Brian
    Member

    Great that is exactly what had to be done.

    Thanks for sharing.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Events page showing "Blog Archives" as title’ is closed to new replies.