Support » Plugin: Events Manager » [Plugin: Events Manager] Latest Update puts Page name in upper left hand of page

Viewing 15 replies - 16 through 30 (of 34 total)
  • ..but I am glad, that you temporarily found the workaround. The plugin is really worth keeping.

    Cyndi

    (@cynderella)

    I love the plug-in….the only one I use on sites. But there is something with the latest version that is playing with the WP-generated title tags. Hope my workaround works for others. You’ve been a wonderful help, Shonu.

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    in this case, am pretty sure it’s a theme issue, because we just filter out the content, am betting the theme supplies the title tags inside the wp_title() function, which it shouldn’t (most themes do it outside, so EM can’t overwrite it).

    Cyndi

    (@cynderella)

    Marcus, thank you! I just posted on the StudioPress forum. You are awesome, very rare to find people/developers so fast and responsive. Will keep you posted on what I learn.

    Cyndi

    (@cynderella)

    Don’t know if this helps or not but got a response from StudioPress:

    The theme filters the function and builds the tags based on the type of data being built, which is more efficient and the same approach used by top SEO plugins.

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    all i can say is it works with top SEO plugins, yet not with your theme 🙂

    this might get resolved when this is done though : http://wp-events-plugin.com/blog/2011/10/20/state-of-the-event/

    I also use a Studio Press / Genesis theme (Prose) and got the same issue of the page title appearing top left when I updated to Events Manager 4.302

    Cyndi — I didn’t understand your fix. Please could you explain it again? Thanks!

    Cyndi

    (@cynderella)

    CSW14, probably easier if I send you a screen shot, email me at otg.virtual AT gmail and put “Event Manager” in the subject line.

    Cyndi

    (@cynderella)

    Let me see if I can explain here. For the line with Events page title I leave it blank.

    Default event list format I put the h tag in it: <h2><b>#_EVENTLINK</b></h2> and then my other stuff

    For Single event page title format I leave it blank.
    Default single event format I have (your will vary, but it the h tag that does the trick):
    <h2>#_NAME</h2>
    <p>#F #j, #Y #@_{ \t\h\r\u F j, Y} </p>
    <p>#_NOTES</p>

    Marcus — this issue did not occur with version 4.212 (the version I’m running on my live site), so it’s been prompted by some change in Events Manager between that version and 4.302.

    With version 4.212 of Events Manager, the title tag in the HTML head section pulls in “Events” for the main events manager page or the name of the event for the specific event page (“West Windsor Community Bike Ride” in the example here):

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>West Windsor Community Bike Ride</title>
    <meta name="robots" content="noodp,noydir" />
    <link rel="Shortcut Icon" href="http://sustainableprinceton.org/wp-content/themes/prose/images/favicon.ico" type="image/x-icon" />

    With version 4.302, there is no title tag at all in the HTML head section. Instead, the name of the event appears without title tags; a meta tag that Genesis inserts is also missing:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      Monthly residents meeting
    <link rel="Shortcut Icon" href="http://localhost:8888/wp-content/themes/prose/images/favicon.ico" type="image/x-icon" />

    I checked the header.php file of the Genesis theme framework code and it indeed does apply some filters to the wp_title() function. For example, it has a series of if statements testing whether the page is the home page, a post, a category etc — depending on what the page is, different things get put in the title.

    Cyndi — thanks for clarifying. Your workaround goes some way towards fixing the issue from an appearance point of view, but we still have no <title> tags… which has consequences for the way the page appears in the browser (no name in the title bar/tab) and for search engines.

    Cyndi

    (@cynderella)

    I know…..but had to get the text out — it was driving the clients batty!

    Marcus — I had a quick look at the Event Manager code, and the issue seems to arise at least partly from line 175 in em-events.php. If I change the arguments of the filter call to lower the priority of the filter em_content_wp_title, everything seems to work as it used to back in version 4.212 (although interestingly the robots meta tag appears to be inserted a couple of lines below where it used to be). For instance, replacing the priority value of 100 with a value of 10 means that we get a properly formatted title tag whether we are on the main events page or a specific event listing:

    add_filter ( 'wp_title', 'em_content_wp_title',10,3 ); // override other plugin SEO due to way EM works.

    Any priority value up to and including 20 works fine (which I suppose isn’t surprising given that the relevant Genesis filter, genesis_doctitle_wrap, has a priority of 20).

    On a side note, I wonder if there’s a typo at line 164 of em-events.php (should %WP_TITILE_SEP% be %WP_TITLE_SEP% ?)

    Cyndi

    (@cynderella)

    Good investigation, CSW!

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    Thanks csw14, well done! Coincidentally a pro user figured it out last night.

    The reason for the 100 priority is to make it work with Yoasts SEO plugin.

    I still maintain this is a StudioPress’ fault. It shouldn’t matter where my filter is added, at worst my changes would be ignored but not cause the bug above. Am guessing they generate the title tags within the title during wp_title, which is wrong. I’ve emailed them about it, if a member wants to invite them here to figure it out, feel free!

    However, here’s an easy fix for those with studiopress without hacking:

    remove_filter ( 'wp_title', 'em_content_wp_title',100,3 );
    add_filter ( 'wp_title', 'em_content_wp_title',10,3 );

    insert that e.g. in your functions.php file, or create a new php file in wp-content/mu-plugins/ and add it in there (between php tags of course)

    that said, once events become posts, it’ll be fixed.

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘[Plugin: Events Manager] Latest Update puts Page name in upper left hand of page’ is closed to new replies.