Home › Forums › Calendar Products › Events Calendar PRO › how to do that in the title of the page appeared on the location (place)
- This topic has 6 replies, 2 voices, and was last updated 12 years, 2 months ago by
itpromotion.
-
AuthorPosts
-
February 7, 2014 at 2:30 pm #102032
itpromotion
Participanthow to do that in the title of the page appeared on the location (place)
eg
Title – Place @ Name page @ titile my website
February 8, 2014 at 12:14 pm #102358Brook
ParticipantHowdy itpromotion,
I am sorry, I am struggling to understand you again. I promise to do my best.
Are you trying to change the <title> element of the single events page to include the venue location? If so this snippet allows you to change the <title> event to whatever you fancy. If you only want to change the single-events page <title>, then you can delete every other one of the elseif{} statements and just leave the single-events one behind. If you are trying to change a different page’s <title>, like perhaps the venue one, then just use its it{} statement instead.
Did I misunderstand you? Perhaps you are not trying to change the <title> element, but rather you want to change the event header’s title. If so, change the filter found on line 2 of the snippet from ‘wp_title’ to ‘the_title’.
As far as adding the venue location data, you would want to use one of our tribe_get_ functions for that and append it to the ‘$title =’ line in your modified snippet. For instance, tribe_get_city() of tribe_get_address(). You can find a full list of those functions in the left hand pane of this link.
Does that all make sense? It does require a bit of technical skill to do what you want, so unfortunately my speech uses some technical and perhaps hard to understand terms. I want to help though. Please let me know if I can clarify or assist you further. Thanks!
– Brook
February 8, 2014 at 3:03 pm #102382itpromotion
ParticipantI want to title page in the browser displays something like this:
<title single event page> @ <title venue page> – <title city>But how to do it and in what files?
February 10, 2014 at 12:47 pm #102783Brook
ParticipantHowdy itpromotion,
I think this snippet will do what you want. Paste it at the top of your theme’s functions.php file, underneath the first line “<?php”. If your theme does not have a functions.php file, go to your theme folder, create a new text document file called “functions.php”, and paste this text in the first line of the file “<?php”. On line 2 or 3, paste that snippet.
Did that work? Does the snippet do what you needed? Please let me know. Cheers!
– Brook
February 11, 2014 at 3:14 am #103117itpromotion
ParticipantIt does not work, I still have it as it was.
I have a theme: http://themeforest.net/item/rush-wordpress-blog-magazine-theme/5126428
February 11, 2014 at 7:59 am #103211Brook
ParticipantI think that is because you are using Yoast. Notice in the third line of the snippet it provides instructions for those using Yoast. Please try following those directions and seeing if it fixes the problem.
I hope that helps. Let me know if not. I am not sure what else I can do though, that code is tested and proven to work on countless sites. Cheers!
– Brook
February 11, 2014 at 12:21 pm #103424itpromotion
ParticipantAfter inserting the code displays as shown in Figure 01
http://www.download.wme.com.pl/inne/01.jpg
and should wyśwetlać as shown in Figure 02
-
AuthorPosts
- The topic ‘how to do that in the title of the page appeared on the location (place)’ is closed to new replies.
