• The plugin and widget work and look great on the home page and calendar views. But when I click on an event the time/place HTML code is inserted right after the opening body tag.

    Also, the google map doesn’t appear, another Bing map on the page breaks, and the RH column widgets disappear.

    I’m using the Arras theme. Another site I’m working on uses a child of twentyeleven, and everything works fine there. Changing the DOM element to insert the calendar into doesn’t make a difference.

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can help you with the first problem. The Arras theme loops through all posts in the header and uses get_the_excerpt to create SEO friendly meta descriptions for the page.

    All-in-One Event Calendar adds a filter to the get_the_excerpt function that outputs html. This breaks the meta tag and the browser gets confused.

    You can work around this by replacing the function arras_document_description found in arras/library/template.php with the function below.

    function arras_document_description() {
    	if ( class_exists('All_in_One_SEO_Pack') || class_exists('Platinum_SEO_Pack') ) return false;
    	if ( is_single() || is_page() ) {
    		if ( have_posts() ) {
    			while( have_posts() ) {
    				the_post();
    				if ( get_post_type() != 'ai1ec_event') {
    					echo '<meta name="description" content="' . get_the_excerpt() . '" />';
    				}
    			}
    		}
    	} else {
    		echo '<meta name="description" content="' . get_bloginfo('description') . '" />';
    	}
    }
    Thread Starter tommcgee

    (@tommcgee)

    Thanks, josjo, that was just what I needed.

    It also fixed most of the other problems with widgets. The only quirk left — the map not appearing on the page — seems to be a conflict with the “Simple Google Maps” widget. Once I removed that, the map appeared on the event page.

    I just updated to the latest arras 1.5.2 RC2 and WordPress 3.3 and even with this modification I still get the issue happening. It was working fine before, any thoughts

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: All-in-One Event Calendar] Duplicate Code Inserted, broken Google Map display’ is closed to new replies.