• Hi,

    So I’m having trouble on my website https://astrozombies.net84.net, where I would like the line under the title of the first news post at the top of the page to line up with the line under the first title in the links bar.

    It does this on every other page (i.e. general pages, not news pages) Except this one.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • it is obviously caused be the ‘older posts’ link:

    try and remove this area of code from index.php:

    <p>
    	<div id="nav-above" class="navigation">
    		<div class="nav-previous"><?php....?></div>
    		<div class="nav-next"></div>
    	</div><!-- #nav-above -->
    Thread Starter katiecoleman

    (@katiecoleman)

    Thanks!

    Thread Starter katiecoleman

    (@katiecoleman)

    This code doesn’t seem to be in my index.php file, I ran a text search for it too but returned nothing.

    It would be in the loop.php in the twenty ten parent, or loop-index.php in a child theme.

    Another less destructive way to do this for the whole website is in the style.css, at the end of the file add:

    Removing with Style

    /* style added by KC */
    #nav-above {
         display: none;
    }

    Removing with Code
    When you have no choice but to remove code, it is better to remark code rather than deleting it, so it can be restored if required, and is easy to find where a change has been made!

    HTML Remarks

    <!--
    This as a html remark
    over a couple of lines
    -->
    
    <!-- This is a html comment -->

    PHP remarks

    /*
    This is a php remark
    over a couple of lines
    */
    
    /* This is a php comment */ 
    
    // This is a php comment

    This code block as an Example

    <!-- Start code remarked by KC
    <div id="nav-above" class="navigation">
    		<div class="nav-previous"><?php....?></div>
    		<div class="nav-next"></div>
    	</div>
    End code remarked by KC -->
    <!-- #nav-above -->

    HTH

    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HELP with DIVS?’ is closed to new replies.