• Kasia

    (@kasia_codeword)


    I have noticed some issues with page titles in this plugin.

    1) In my theme’s main header.php file, I have set my wp_title separator to be on the left, because I want the site title to come before the page title. However, all of the pages for Events by default have the separator on the right so I get “Site Title Page Title | ” instead of “Site Title | Page Title”. How can I change this?

    2) When on the default events page (mysite.com/events), clicking the “Previous Events” link appears to use jQuery to load the past events without fully reloading the page (url becomes mysite.com/events/past/?action=tribe_list&tribe_paged=1). In this case, there is no page title displayed at all, it just shows the URL of my site. If navigation back to Upcoming Events with the “Next Events” link (url becomes mysite.com/events/upcoming/?action=tribe_list&tribe_paged=1), same thing. No page title, just shows the URL.

    3) In single event view (mysite.com/event/title-of-the-event), the page title has the separator on the left, but is showing an extra separator, so it displays “Site Title | | Event Title” instead of “Site Title | Event Title”. Again, same question, how can I change this?

    Fourth thing, while not related to page titles, has to do with separating borders between events. I notice that if I load the Previous Events with jQuery (url – mysite.com/events/past/?action=tribe_list&tribe_paged=1), the “tribe-event-end-month” class is not being applied to the last entry in a month, and so a border shows up even though it doesn’t need to be there because the month separator acts as a divider. However, if I then refresh this page, or load mysite.com/events/past manually, the “tribe-event-end-month” class is applied to the last entry in a month, and the border does not show up.

    None of these issues impede the functionality of the plugin in any way, and overall I really like this plugin because it is so customizable, but these little inconsistencies are a bit maddening to a perfectionist like me 😉

    Any suggestions would be appreciated.

    http://wordpress.org/plugins/the-events-calendar/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thanks for posting – there are quite a few issues in what you’ve written and it would be appreciated if you could break them up into separate threads. We can concentrate on the titles here, but for your second/fourth issues please do post fresh threads.

    Re the titles, is this something that happens even with a default, unmodified theme (such as Twenty Twelve) and no other plugins running?

    Thread Starter Kasia

    (@kasia_codeword)

    Hi Barry, thanks for your reply. As requested, I have started a new topic for 2 (http://wordpress.org/support/topic/jquery-and-page-titles?replies=1) and 4 (http://wordpress.org/support/topic/tribe-event-end-month-css-class?replies=1).

    As per your suggestion, I have created a fresh WP install with a default theme (Twenty Thirteen) and no other plugins installed.

    Re issue 1:

    It does not really apply in this case because the default theme has the site title on the right and the page title on the left, and the plugin follows this convention so event page titles are appearing correctly. However in my custom theme, I want the site title on the left and the page title on the right.

    Re issue 3:

    In this case with the default theme, the page title is not showing up at all. It only displays the site title.

    It does not really apply in this case because the default theme has the site title on the right and the page title on the left, and the plugin follows this convention so event page titles are appearing correctly. However in my custom theme, I want the site title on the left and the page title on the right.

    Fair point! However, we can’t help a great deal with customization issues like this here on the wordpress.org forum. That said, is setting up a filter on wp_title and manipulating the result a possibility?

    In this case with the default theme, the page title is not showing up at all. It only displays the site title.

    Ah, I see.

    You’re partly hitting against a known bug here that should be resolved in the next maintenance release. In the interim can you try adding the following to your wp-config.php file?

    define( 'TRIBE_MODIFY_GLOBAL_TITLE', false );

    Hi kasia_codeword, how are you getting on here?

    Thread Starter Kasia

    (@kasia_codeword)

    That said, is setting up a filter on wp_title and manipulating the result a possibility?

    I did play around with this a bunch. My original code pertaining to page titles in my theme’s header.php file is:

    <title>
    	<? bloginfo('name'); ?>
    	<? wp_title('|',true,'left'); ?>
    	<? $site_description = get_bloginfo('description'); ?>
    	<? if ( is_front_page() && $site_description ) { echo ' | '; bloginfo('description'); } ?>
    </title>

    I tried using <? if is_singular('tribe_events') { ?> with variations on wp_title but I haven’t been able to get it to do what I want. Insight is appreciated!

    I think personally I might reduce that to just the wp_title() call and filter it appropriately from functions.php, but really this is the domain of custom development and I’m afraid I would have to bow out at this point.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Page Titles & End Month CSS Class’ is closed to new replies.