Home › Forums › Calendar Products › Events Calendar PRO › Changing H1 Title on All Calendar Views & Page Title in Browser
- This topic has 8 replies, 2 voices, and was last updated 11 years, 7 months ago by
Barry.
-
AuthorPosts
-
August 13, 2014 at 7:05 pm #661907
clarksburgbaptist
ParticipantHello,
I am trying to change the H1 Page title on my calendar page for all calendar views to “Calendar”. Currently it is just saying my Site Title – which is the name of my organization.I would also love to update the page title that appears at the top of browsers. It current says “Events this month | Clarksburg Baptist Church”. I would like for “Events this month” to say “Calendar”.
Thanks for any help!
August 14, 2014 at 1:46 pm #668327Barry
MemberHi – some great questions there!
I am trying to change the H1 Page title on my calendar page for all calendar views to “Calendar”. Currently it is just saying my Site Title – which is the name of my organization.
I can’t view your site so this one is a little tricky to evaluate.
Since I don’t see this when using a default theme (like Twenty Thirteen or similar), though, I suspect it is a problem that possibly only occurs when using your particular theme.
One thing to try in the first instance, if you haven’t already done so, is visiting the Events > Settings > Display admin screen and switching from the Default Page Template to Default Events Template (or vice versa).
If that doesn’t work it’s possible you’ll need to play around with your theme code.
I would also love to update the page title that appears at the top of browsers. It current says “Events this month | Clarksburg Baptist Church”. I would like for “Events this month” to say “Calendar”.
A snippet like this one should help (you could add it to your theme’s functions.php file):
add_filter( 'tribe_month_grid_view_title', 'events_title_tag', 10, 2 ); add_filter( 'tribe_events_this_month_title', 'events_title_tag', 10, 2 ); function events_title_tag( $title, $separator ) { return substr_replace( $title, 'Calendar ', 0, strpos( $title, $separator) ); }Does that help?
August 14, 2014 at 1:49 pm #668348clarksburgbaptist
ParticipantThis reply is private.
August 14, 2014 at 1:51 pm #668358clarksburgbaptist
ParticipantThanks for your response Barry! In regard to the first issue, I have tried switching the template to both of those and it didn’t seem to effect the issue. I tried disabling all additional plugins as well last night and that didn’t seem to resolve the issue.
Thanks,
AndyAugust 14, 2014 at 1:54 pm #668378clarksburgbaptist
ParticipantJust tried the snippet of code to set the title at the top of the browser – works great! Thanks!
August 14, 2014 at 4:53 pm #669169Barry
MemberGreat, glad that worked 🙂
With regards to the remaining issue, my guess is that your theme has some logic in place which uses the site name within that title under certain circumstances – without seeing the code I can’t really advise you about that, unfortunately, except that I’d expect the code in question to live within the theme’s header.php template (if it follows a standard layout) or else in page.php.
Is contacting the theme author an option for that one?
August 14, 2014 at 5:26 pm #669337clarksburgbaptist
ParticipantThis reply is private.
August 15, 2014 at 8:53 am #674067Barry
MemberThanks Andy: unfortunately I can’t identify the code via the theme editor (it doesn’t always list every file making up a given theme) and so waiting out on the theme author’s response is probably the best course of action here 🙂
September 4, 2014 at 8:11 pm #723405Barry
MemberHi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!
-
AuthorPosts
- The topic ‘Changing H1 Title on All Calendar Views & Page Title in Browser’ is closed to new replies.
