Home › Forums › Calendar Products › Events Calendar PRO › How do I change browser tab text for calendar page?
- This topic has 15 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
May 2, 2015 at 8:29 am #960045
Sarah
ParticipantHi,
I’m setting up my calendar and so far everything is working great except that the browser tab text shows the link instead of a title like “Events” or “Calendar”. The link is here: http://www.familyfriendlyhudsonvalley.com/events/. Every other page on my site shows a normal title in the browser tab. How can I fix this? Thank you.-Sarah
I’m including the info from the Help Section in case it helps:
install keys
events-calendar-pro = 52948c15f07de646384eaaeb3b4825e4e1a7c3e0
WordPress version
4.2.1
PHP version
5.4.40
pluginsAdRotate version 3.11.3 by Arnan de Gans of AJdG Solutions(http://ajdg.solutions/)
Akismet version 3.1.1 by Automattic(http://automattic.com/wordpress-plugins/)
Amazon Link version 3.2.4 by Paul Stuttard(http://www.houseindorset.co.uk)
Analytics360 version 1.4.0 by Crowd Favorite(http://crowdfavorite.com)
Backup Scheduler version 1.5.11 by SedLex(http://www.sedlex.fr/)
Captcha version 4.1.0 by BestWebSoft(http://bestwebsoft.com/)
Contact version 0.8.1 by StvWhtly(http://stv.whtly.com)
Disable Admin Bar version 1.1 by Ozh(http://ozh.org/)
Easy Contact Forms version 1.4.7 by ChampionForms.com(http://championforms.com)
The Events Calendar PRO version 3.9.3 by Modern Tribe, Inc.(http://m.tri.be/20)
Floating Social Media Icon version 2.0 by Acurax(http://www.acurax.com)
Google Analytics by Yoast version 5.4.2 by Team Yoast(https://yoast.com/)
Jetpack by WordPress.com version 3.4.3 by Automattic(http://jetpack.me)
MailChimp Widget version 0.8.12 by James Lafferty(https://github.com/kalchas)
NextGEN Gallery by Photocrati version 2.0.79 by Photocrati Media(http://www.photocrati.com)
Category Order version 1.0.3 by Wessley Roche(http://wpguy.com/)
Pinterest “Pin It” Button Lite version 2.0.9 by Phil Derksen(http://philderksen.com)
SEO Keyword Suggestions by HitTail version 1.0.3 by HitTail(http://www.hittail.com)
Simple Login Log version 1.1.0 by Max Chirkov(http://SimpleRealtyTheme.com)
StatPress version 1.4.3 by Daniele Lippi(http://www.danielelippi.it)
The Events Calendar version 3.9.3 by Modern Tribe, Inc.(http://m.tri.be/1x)
User Spam Remover version 0.9.8.1 by Joel Hardi(http://lyncd.com/)
WordPress Popular Posts version 3.2.1 by Hector Cabrera(http://cabrerahector.com)
WP-Ban version 1.65 by Lester ‘GaMerZ’ Chan(http://lesterchan.net)
Weather Underground version 2.0.11 by Katz Web Services, Inc.(https://katz.co)network plugins
–
mu plugins
–
theme
Geo Places
multisite
–
settingsrecurring_events_are_hidden = exposed
tribeEventsTemplate =
tribeEventsBeforeHTML =
tribeEventsAfterHTML =
previous_ecp_versions =Array
(
[0] => 0
[1] => 3.9.2
)latest_ecp_version = 3.9.3
stylesheetOption = full
tribeEnableViews =Array
(
[0] => list
[1] => month
[2] => week
[3] => day
)viewOption = list
tribeDisableTribeBar =
monthEventAmount = 3
dateWithYearFormat = F j, Y
dateWithoutYearFormat = F j
monthAndYearFormat = F Y
dateTimeSeparator = @
timeRangeSeparator = –
datepickerFormat = 1
earliest_date = 2015-04-25 10:00:00
latest_date = 2015-05-30 22:00:00
defaultValueReplace = 1
disable_metabox_custom_fields = show
pro-schema-version = 3.5
hideLocationSearch =
hideRelatedEvents =
weekDayFormat = D jS
custom-fields =Array
(
[2] => Array
(
[name] => _ecp_custom_2
[label] => County
[type] => checkbox
[values] => Ulster
Dutchess
Columbia
Westchester
Putnam
Rockland
Greene
Orange
))
custom-fields-max-index = 2
eventsDefaultOrganizerID =
eventsDefaultVenueID = 0
eventsDefaultAddress =
eventsDefaultCity =
eventsDefaultState = NY
eventsDefaultProvince =
eventsDefaultZip =
defaultCountry =Array
(
[0] => US
[1] => United States
)eventsDefaultPhone =
tribeEventsCountries =WordPress timezone
America/New_York
server timezone
UTCMay 2, 2015 at 9:39 am #960047Sarah
ParticipantI changed the slug to “calendar” instead of events because I realized it was probably conflicting with my theme which also has a calendar/events portion (that doesn’t work for what I need, which is why I added The Events Calendar). The new link is: http://www.familyfriendlyhudsonvalley.com/calendar/. However I am still having the same issue.
May 3, 2015 at 3:34 pm #960109Josh
ParticipantHey Sarah,
Thanks for reaching out to us!
It looks like the “wp_title()” isn’t being set or defined by default via your theme. Fortunately there is a pretty easy way to solve this! Take a look at this function which shows how to update the “wp_title” for the different views available within our plugin.
You would add this code to your theme’s functions.php file to update the titles for the page.
Let me know if this helps.
Thanks!
May 4, 2015 at 7:49 am #960203Sarah
ParticipantThanks so much for getting back to me. Unfortunately it didn’t fit it for me, unless of course I did it wrong. I admit I’m not very experienced. I added it into the functions.php file in my theme (I’ve since taken it out). Any other suggestions?
May 4, 2015 at 12:32 pm #960307Josh
ParticipantHey Sarah,
No problem. A couple of quick questions that may help us to resolve the issue:
- Are you using an SEO plugin such as Yoast WordPress SEO? If so, you’ll need to modify the code using the notes from the top of the gist https://cloudup.com/c9n–MtNvCr.
- When adding to your theme’s functions.php, it’s best to add at the very end of the file, right before the closing “?>”. Does it have an impact if you add the info there?
- After adding the snippet, did you check the other views to see if maybe the single event title or one of the other default views (list, or photo) had an updated title?
Let me know if this helps.
Thanks!
May 6, 2015 at 6:54 pm #961018Sarah
ParticipantI have the Google Analytics by Yoast plugin and tried add the code both with and without the customization. I added it in the correct place in the file and it doesn’t have an impact on any of the calendar views. The single event pages haven’t had the problem at all.
May 8, 2015 at 7:53 pm #961600Josh
ParticipantHey Sarah,
Thanks for following up with us!
Is the code still active on your site? I took a look to see if I could get more information and none of the filters seem to be in effect for the different event views on your site. If it is, can you send me the code as it currently is pasted into your current theme?
Thanks!
May 13, 2015 at 10:02 am #962362Sarah
ParticipantIt wasn’t but it is now. This is the code I have pasted:
// Runs the <title> element through our custom filter
add_filter(‘wp_title’, ‘filter_events_title’);
// If you are using Yoast delete the above line and uncomment the following one
//add_filter(‘wpseo_title’, ‘filter_events_title’);// Tribe events: Manually set title for each page
function filter_events_title ($title) {if ( tribe_is_event() && is_single() ) { // Single Events
$title = ‘Single event page’;
}
elseif ( tribe_is_venue() ) { // Single Venues
$title = ‘Venue page’;
}
elseif (tribe_is_organizer() && is_single() ) { // Single Organizers
$title = ‘Organizer page’;
}
elseif ( tribe_is_month() && !is_tax() ) { // Month View Page
$title = ‘Month view page’;
}
elseif ( tribe_is_month() && is_tax() ) { // Month View Category Page
$title = ‘Month view category page’;
}
elseif ( tribe_is_upcoming() && !is_tax() ) { // List View Page: Upcoming Events
$title = ‘List view: Upcoming events page’;
}
elseif ( tribe_is_upcoming() && is_tax() ) { // List View Category Page: Upcoming Events
$title = ‘List view Category: Upcoming events page’;
}
elseif ( tribe_is_past() && !is_tax() ) { // List View Page: Past Events
$title = ‘List view: Past events page’;
}
elseif ( tribe_is_past() && is_tax() ) { // List View Category Page: Past Events
$title = ‘List view Category: Past events page’;
}
elseif ( tribe_is_week() && !is_tax() ) { // Week View Page
$title = ‘Week view page’;
}
elseif ( tribe_is_week() && is_tax() ) { // Week View Category Page
$title = ‘Week view category page’;
}
elseif ( tribe_is_day() && !is_tax() ) { // Day View Page
$title = ‘Day view page’;
}
elseif ( tribe_is_day() && is_tax() ) { // Day View Category Page
$title = ‘Day view category page’;
}
elseif ( tribe_is_map() && !is_tax() ) { // Map View Page
$title = ‘Map view page’;
}
elseif ( tribe_is_map() && is_tax() ) { // Map View Category Page
$title = ‘Map view category page’;
}
elseif ( tribe_is_photo() && !is_tax() ) { // Photo View Page
$title = ‘Photo view page’;
}
elseif ( tribe_is_photo() && is_tax() ) { // Photo View Category Page
$title = ‘Photo view category page’;
}return $title;
}May 14, 2015 at 8:43 pm #962832Josh
ParticipantHey Sarah,
From here, since you’re using WordPress SEO, you’ll need to modify the filter to be for the “wpseo_title” rather than the default WordPress one. So this:
// Runs the <title> element through our custom filter add_filter(‘wp_title’, ‘filter_events_title’); // If you are using Yoast delete the above line and uncomment the following one //add_filter(‘wpseo_title’, ‘filter_events_title’);should be changed to:
// If you are using Yoast delete the above line and uncomment the following one add_filter(‘wpseo_title’, ‘filter_events_title’);Then from there, the main conditional to modify the calendar grid would be the:
if ( tribe_is_month() && !is_tax() ) { // Month View Page $title = ‘Month view page'; }You can then change the “Month view page” to be whatever you would like the title to be.
Let me know if this helps.
Thanks!
May 15, 2015 at 10:57 am #962981Sarah
ParticipantI changed it accordingly and it’s still not working. Oddly, it seems to be fine for certain pages like “upcoming events”, “past events”, and month category view (like June 2015). The problem only seems to be on the main view pages (month/list/etc.). I really need to get this fixed somehow because I can’t see myself using this plugin without it changed. And I really love the plugin!
May 17, 2015 at 2:15 pm #963151Sarah
ParticipantI just discovered that if I add it to the functions.php in two different locations I get different results.
When I add it to public_html/familyfriendlyhudsonvalley/wp-content/themes/GeoPlaces3/functions.php, I get the white screen.
When I add it to public_html/themes/GeoPlaces3/functions.php, I get no change.
Not sure if that information helps, but it seems worth mentioning.
May 17, 2015 at 2:16 pm #963152Sarah
ParticipantAlso within the last few days I’ve realized the log in/log out part of my website produces a white screen. I’m assuming it’s because I’m working on this because I haven’t made any other changes.
May 18, 2015 at 8:38 am #963302Josh
ParticipantHey Sarah,
Thanks for following up! I’m not positive based on how your install is set up, but my assumption would be that the theme at “public_html/themes/GeoPlaces3/functions.php” actually isn’t tied to your WordPress site and only changes made to “public_html/familyfriendlyhudsonvalley/wp-content/themes/GeoPlaces3/functions.php” would show up on the site.
Since you get the white screen when adding to that page, it sounds like the snippet is either being pasted in a bad place within the file, possible within another function or after a closing “?>”. When copying, ensure you add it to the very end of the file and ensure if anything comes after it, it is just a closing “?>” and not any other characters such as a “}”.
This should get rid of the white screen of death issue as well as allow the changes to display on your site.
Let me know if this helps.
Thanks!
May 19, 2015 at 7:04 pm #963773Sarah
ParticipantThis reply is private.
May 21, 2015 at 1:24 pm #964300Josh
ParticipantHey Sarah,
I apologize for the inconvenience. If you would like a refund, please send a message to support[at]theeventscalendar.com with a link to this forum thread along with a copy of your original purchase receipt.
I apologize again. Let me know if there is anything else that I can do to help.
Thanks!
-
AuthorPosts
- The topic ‘How do I change browser tab text for calendar page?’ is closed to new replies.
