WordPress.org

Ready to get started?Download WordPress

Forums

More tag screwes up my template (15 posts)

  1. Forgoten Dynasty
    Member
    Posted 5 years ago #

    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?

  2. SteveSmith1983
    Member
    Posted 5 years ago #

    Could you post a link to your site so I or someone else can take a look. Thanks!

  3. Forgoten Dynasty
    Member
    Posted 5 years ago #

    http://www.ultimate-ipod.com

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

    Login:Guest
    Password:Guest
    (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.

  4. SteveSmith1983
    Member
    Posted 5 years ago #

    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.

  5. SteveSmith1983
    Member
    Posted 5 years ago #

    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.

  6. Forgoten Dynasty
    Member
    Posted 5 years ago #

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

    heres my entire main index

    <?php
    $curdir = getcwd ();
    chdir('/home/ultimate/public_html/forums');
    require_once('/home/ultimate/public_html/forums/global.php');
    chdir ($curdir);
    get_header();
    ?>
    
    	<div id="content">
    
    <?php
    
     //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
    
    ?>
    
    <?php
    
       if (is_home()) {
    
          query_posts("cat=-1,-8,-9");
    
    echo '
    <br />
    <br />
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <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>
      </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <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>
      </tr>
      <tr>
        <td height="5"><hr size="5" /></td>
      </tr>
    </table>
    <br />
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <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>
      </tr>
    </table>';
    
    }
    
    ?>
    
    	<?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;'); ?>
    
    				</div>
    
    				<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>			 
    
    				</p>
    
    			</div>
    
    			<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>
    
    		</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; ?>
    
    	</div>
    
    <?php
    get_sidebar();
     ?>
    
    <?php get_footer(); ?>
  7. Forgoten Dynasty
    Member
    Posted 5 years ago #

    Any idea?

  8. SteveSmith1983
    Member
    Posted 5 years ago #

    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="http://www.ultimate-ipod.com/reviews/ipod-touch-20-review.html#more-24" class="more-link">Read the rest of this entry &raquo;</a></p>
  9. Forgoten Dynasty
    Member
    Posted 5 years ago #

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

    IE

    blahblahblah
    </div>
    <!--more-->
    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 ?

  10. Forgoten Dynasty
    Member
    Posted 5 years ago #

    What file is the more tag created in?

  11. SteveSmith1983
    Member
    Posted 5 years ago #

    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.

  12. johnstonphilip
    Member
    Posted 5 years ago #

    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?

  13. johnstonphilip
    Member
    Posted 5 years ago #

    Nevermind...
    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:
    http://wordpress.org/support/topic/171365?replies=6

  14. coddim
    Member
    Posted 5 years ago #

    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.

  15. AntonK
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.