WordPress.org

Ready to get started?Download WordPress

Forums

Random --> on home page (10 posts)

  1. brandcaul
    Member
    Posted 2 years ago #

    Hey,

    I cant seem to find where to remove this "-->" that appears above my first post on my home page? http://addblog.co.za

    Any help in removing it would be hugely appreciated.

    Thanks!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Looks like an improperly closed comment tag from:

    <style type="text/css">
    <!--
    			#site-title,
    		#site-description {
    			position: absolute !important;
    			clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    			clip: rect(1px, 1px, 1px, 1px);
    		}
    		</style>
  3. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    do check and fix the commenting at the location suggested by @esmi.

    also - more started here:

    <!--		<nav id="nav-above">
    			<h3 class="assistive-text">Post navigation</h3>
    			<div class="nav-previous"><a href="http://addblog.co.za/page/2/" ><span class="meta-nav">&larr;</span> Older posts</a></div>
    			<div class="nav-next"></div>
    		</nav><!-- #nav-above -->
    	-->

    broken because of wrongly nested html commenting;

    some explanation see:
    http://htmlhelp.com/reference/wilbur/misc/comment.html

  4. brandcaul
    Member
    Posted 2 years ago #

    Thanks for the replies.

    I've edited the code from Esmi but I'm not sure where to find the code from alcymyth? I still have the random "-->" there.

    The other thing is how did you guys manage to see the PHP code of my site? Would be really helpful to know because I use firebug in Firefox to edit CSS at the moment.

    Thanks!

  5. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    the code is likely to be where you tried to comment out the top nav - in index.php?

    possibly here:

    <?php twentyeleven_content_nav( 'nav-above' ); ?>

    remove the html commenting, and try this php commenting instead:

    <?php // twentyeleven_content_nav( 'nav-above' ); ?>
  6. esmi
    Forum Moderator
    Posted 2 years ago #

    how did you guys manage to see the PHP code of my site?

    We can't. We can only see the generated output markup.

  7. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    The other thing is how did you guys manage to see the PHP code of my site?

    you are using a wellknown theme ;-)

    so it is relatively easy to know where the html in the browser comes from.

    besides, none of the replies so far (apart from my last reply) was referring to any php code...

  8. brandcaul
    Member
    Posted 2 years ago #

    Oh ok I see. lol!

    Well I've made the changes aclymyth but that "-->" is still there. I'm not sure what else to do? Is the only place to possibly fix it in the index.php file? I have a index.php in my child theme.

  9. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

  10. brandcaul
    Member
    Posted 2 years ago #

    Ok, never mind I fixed it. I needed to go into the actual twenty eleven theme and not the child theme.

    Thanks for the help guys!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.