how to do that in the title of the page appeared on the location (place)

Home Forums Calendar Products Events Calendar PRO how to do that in the title of the page appeared on the location (place)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #102032
    itpromotion
    Participant

    how to do that in the title of the page appeared on the location (place)

    eg

    Title – Place @ Name page @ titile my website

    #102358
    Brook
    Participant

    Howdy 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

    #102382
    itpromotion
    Participant

    I 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?

    #102783
    Brook
    Participant

    Howdy 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

    #103117
    itpromotion
    Participant

    It does not work, I still have it as it was.

    I have a theme: http://themeforest.net/item/rush-wordpress-blog-magazine-theme/5126428

    #103211
    Brook
    Participant

    I 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

    #103424
    itpromotion
    Participant

    After 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

    http://www.download.wme.com.pl/inne/01.jpg

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘how to do that in the title of the page appeared on the location (place)’ is closed to new replies.