Support » Plugins » More tag screwes up my template

  • Every time I use The <!–more–> tag it screws up my template (the Side bar goes under the post and my Footer doesn’t go 100% of the page.

    Is their a way to fix this or an alternative that wont do this?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Could you post a link to your site so I or someone else can take a look. Thanks!

    The site isnt released yet so your going to need to login to a password protected directory.

    (make sure the G is capital)

    Now I don’t use any more tags on the main page.
    but I use it in the Reviews category.
    witch is good so you can see the difference.

    Are you sure it’s the more link? I’ve saved both pages locally and I’m cutting parts out of them and it doesn’t seem to be the more link. I can’t see what it is though! I’ll keep going. If I don’t post back I haven’t found it.

    On the reviews page, somewhere between
    <div id="content">
    and the end you’re missing a </div>! I’ll leave you to find it, it’s driving me crazy!

    If you want, post your PHP around the_content(), and I’ll see if I can see where the div problem is from that.

    Well I no for a fact that its the More tag because when i remove it its fine.

    heres my entire main index

    $curdir = getcwd ();
    chdir ($curdir);
    	<div id="content">
     //Code automatically inserted by Featurific for WordPress plugin
     if(is_home())                             //If we're generating the home page (remove this line to make Featurific appear on all pages)...
      if(function_exists('insert_featurific')) //If the Featurific plugin is activated...
       insert_featurific();                    //Insert the HTML code to embed Featurific
       if (is_home()) {
    echo '
    <br />
    <br />
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <td width="319"><img src="forums/macskin/misc/featured article.png" width="319" height="31" /></td>
        <td background="forums/macskin/misc/Featuredarticle.png">&nbsp;</td>
        <td width="16"><img src="forums/macskin/misc/right.png" width="16" height="31" /></td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <td width="1" rowspan="2">&nbsp;</td>
        <td width="1" rowspan="2" bgcolor="#000000">&nbsp;</td>
        <td height="150">&nbsp;</td>
        <td width="2" rowspan="2" bgcolor="#000000">&nbsp;</td>
        <td width="2" rowspan="2">&nbsp;</td>
        <td height="5"><hr size="5" /></td>
    <br />
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <td width="319"><img src="forums/macskin/misc/newsblog.png" width="319" height="31" /></td>
        <td background="forums/macskin/misc/Featuredarticle.png">&nbsp;</td>
        <td width="16"><img src="forums/macskin/misc/right.png" width="16" height="31" /></td>
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time(' F jS, Y') ?></small><br />
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				<p class="postmetadata">
    				<img src="<?php bloginfo('stylesheet_directory'); ?>/images/silkicons/comments.png" alt="" /> <?php comments_popup_link('No Comments »', '1 Comment', '% Comments'); ?>
    				| <img src="<?php bloginfo('stylesheet_directory'); ?>/images/silkicons/categories.png" alt="" /> <?php the_category(', ') ?>
    				 | <img src="<?php bloginfo('stylesheet_directory'); ?>/images/silkicons/link.png" alt="" /> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Permalink</a>
    <br /><img src="<?php bloginfo('stylesheet_directory'); ?>/images/silkicons/user.png" alt="" /> Posted by <a href=/forums/members/<?php the_author(); ?>.html><?php the_author(); ?></a>			 
    			<hr />
    		<?php endwhile; ?>
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    	<?php else : ?>
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    	<?php endif; ?>
    <?php get_footer(); ?>

    Any idea?

    Something is generating divs of class “post_message” around your content – could this be a plugin? The problem is that in the last of these post_message divs, shown below, the <div> is before the more tag, but the </div> is after the more tag, so it doesn’t get included on the page that says “click to read more”.

    <div id="post_message_59876" class="post_message">
    <p>First, I will cover the iTunes aspect of the process. As soon as iTunes 7.7 is downloaded and installed, access to the App Store is granted, and you are able to download/purchase any applications that you want, and keep them in your iTunes. Useless without a device, but that is beyond the point.</p>
    <p>Here are a few quick screenshots of the actual iTunes interface, when your iPod is upgraded to 2.0:<br />
     <a href="" class="more-link">Read the rest of this entry &raquo;</a></p>

    I fixed it I just add the closing div tag before the more tag in all my topics


    blah blah blah

    Its probably not the most efficient solution but it works so im just going to go with it

    EDIT actually it didn’t fix it because now my articles are screwed up.
    im going to need to edit the source that defines the more tag what file is that in?

    Can I use php in an article ?

    What file is the more tag created in?

    You need to find out what’s generating the divs like this:
    <div id="post_message_59876" class="post_message">

    If it’s your theme generating it then it will most likely be in wp-content/themes/yourtheme/index.php.

    Failing that, try disabling your plugins one at a time to see if the post_message divs go away. Then when you’ve worked out where it’s coming from we can work out how to make it work with the more tag.

    I am having the EXACT same issue here

    The “More Quicktag” puts the sidebar below everything – when I take it out it displays fine

    Any progress on this anyone?

    I was copying text from Lorem Ipsum and it had also copied the Div that goes around it and didn’t properly close the div in my post.

    Check out this post for more:

    Developers be aware with the lorem ipsum generator

    I got the same problem I was working fast on one blog and just copied straight from the web generator to the visual editor and got the problem with the messed template.

    So if you copy from lorem ipsum generator or other pages on the internet make sure you do not copy the div tags as well.

    But WP has function that can validate HTML code while adding new post or page? Isn’t it?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘More tag screwes up my template’ is closed to new replies.