Plugin causing issues with theme template
-
I’ve installed the plugin and successfully made some edits.
But now I’ve found that my theme is playing up on that page. What should be the sidebar on the right is sitting underneath the content instead (see example http://www.huntinghouse.com.au/blog).
It’s not happening on any other pages so I assume it must have to do with the coding of the plugin. I’m very new at this so could I have done something to the plugin code to cause this?
I was having problem with the font and adding it a “.post .hentry .ivycat-post” style to my theme’s css wasn’t working so I’ve done a hack job on it. I’d appreciate any help I can get, thanks!
Code below:
<!-- Note: if you make changes to this file, move it to your current theme's directory so this file won't be overwritten when the plugin is upgraded. --> <hr> <!-- Start of Post Wrap --> <div class="post hentry ivycat-post"> <!-- This is the output of the post title --> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- This will output of the featured image thumbnail --> <div class="featured-image"> <?php the_post_thumbnail( 'thumbnail' ); ?> </div> <!-- This is the output of the excerpt --> <div class="entry-summary"> <div style="font-family:Helvetica, Arial, sans-serif;"> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>"?>Read more..</a> </div> </div> <!-- // End of Post Wrap --><!-- Note: if you make changes to this file, move it to your current theme's directory so this file won't be overwritten when the plugin is upgraded. --> <hr> <!-- Start of Post Wrap --> <div class="post hentry ivycat-post"> <!-- This is the output of the post title --> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- This will output of the featured image thumbnail --> <div class="featured-image"> <?php the_post_thumbnail( 'thumbnail' ); ?> </div> <!-- This is the output of the excerpt --> <div class="entry-summary"> <div style="font-family:Helvetica, Arial, sans-serif;"> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>"?>Read more..</a> </div> </div> <!-- // End of Post Wrap -->
-
Hi alicekenny,
It looks like you may have some mismatched DIV tags. If you don’t have closing div tags (</div>) in the right place for each opening div tag (<div>), it can wreak havoc on the larger page layout.
I added them in the snippet below. Does that help?
You might check elsewhere in your site, too. I checked your page on a DIV tag checker, and it reported 6 missing closing div tags. If you’re still having trouble, you may need to track down the other 4. 🙂
<!-- Note: if you make changes to this file, move it to your current theme's directory so this file won't be overwritten when the plugin is upgraded. --> <hr> <!-- Start of Post Wrap --> <div class="post hentry ivycat-post"> <!-- This is the output of the post title --> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- This will output of the featured image thumbnail --> <div class="featured-image"> <?php the_post_thumbnail( 'thumbnail' ); ?> </div> <!-- This is the output of the excerpt --> <div class="entry-summary"> <div style="font-family:Helvetica, Arial, sans-serif;"> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>"?>Read more..</a> </div> </div> </div> <!-- // End of Post Wrap --><!-- Note: if you make changes to this file, move it to your current theme's directory so this file won't be overwritten when the plugin is upgraded. --> <hr> <!-- Start of Post Wrap --> <div class="post hentry ivycat-post"> <!-- This is the output of the post title --> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- This will output of the featured image thumbnail --> <div class="featured-image"> <?php the_post_thumbnail( 'thumbnail' ); ?> </div> <!-- This is the output of the excerpt --> <div class="entry-summary"> <div style="font-family:Helvetica, Arial, sans-serif;"> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>"?>Read more..</a> </div> </div> </div> <!-- // End of Post Wrap -->Perfect, thanks so much Patrick!
The topic ‘Plugin causing issues with theme template’ is closed to new replies.