Add /Edit Event Page breaks template structure
-
First, thanks for the plugin, it’s absolutely the one and only choice for a buddypress integrated wordpress site. Solid, and features are so complete, after a whole night of exploring I think I have yet discovered half of its potential.
During my little test with the plugin, I ran into a problem which I so much need some good advice on, so here I am trying my luck.
I found that the Add /Edit Event Page on a buddypress profile page is the only page that’d break my theme’s basic structure, which generated by a very basic template “Page.php”
It seems on this page, the template failed to distinguish that it is a singular page, and have a sidebar, and at the right point the page content area has ended, it should load up the footer, and it should continue to run the rest of the codes. As a result, the second sidebar on the right and the footer got messed up, displaced, like paste of mud on the floor.
There’s actually no other sign showing like on other pages, sometimes there some weird empty div generated by the plugin, and got in the original content’s way, not on this particular page, but once I disable the plugin’s buddypress integration, every back to normal; and of course, if I deactivate the plugin as a whole, the page’d disappear and everything on buddypress pages back to normal too.
I wonder why is this page so special and what possible I can do to fix this little theme compatibility issue. I test all my plugins on this theme “Magazine basic by bavatasan”, because of its simplicity, and is far more easy for me to diagnose and trace down possible conflicts. If you look into it, it follows like every wordpress rule for coding a theme, so good fellas, any hints or advice would be great help and much much appreciated. Thank you!
PS. this is where I believe something started to go wrong, footer area of the template:
<?php
/**
* The template for displaying article footers
*
* @since 3.0.0
*/
global $mb_content_area;
if ( is_singular() && ‘sidebar’ != $mb_content_area ) : ?>
<footer class=”entry”>
<?php
wp_link_pages( array( ‘before’ => ‘<p id=”pages”>’ . __( ‘Pages:’, ‘magazine-basic’ ) ) );
the_tags( ‘<p class=”tags”>’, ‘ ‘, ‘</p>’ );
edit_post_link( __( ‘(edit)’, ‘magazine-basic’ ), ‘<p>’, ‘</p>’ );
?>
</footer><!– .entry –>
<?php
endif;
- The topic ‘Add /Edit Event Page breaks template structure’ is closed to new replies.