• Resolved jonathas_scott

    (@jonathas_scott)


    Hi ! anyone had this WEIRD error happening ?
    Posts inserts automatic weird <p id=”top” /> tag within “the_content()”

    Here it is in code:
    <?php the_content(); ?>

    And here is the rendered output:

    <p id="top" />
    <p class="s">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce non leo eu tellus faucibus venenatis.</p>

    When <p class=”s”> was propositally inserted. And it happens on every content body output.

    Anyone can helpme out ? and once again. Thnks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • That’s only in your install or machine or theme.
    BTW, the blog in your profile is a blogger blog, not WP.

    Thread Starter jonathas_scott

    (@jonathas_scott)

    Humm… well Iam working on the yourblog-20-theme directory as base and intended to rename it after.

    But I will try to overwrite the main files with the ones from the classic theme.

    By the way blogger is the actual blog, the wp will be at https://www.echoes4ever.com.br/site

    thnks again moshu ??

    Last time I’ve seen similar idiocies… it was Mac+Safari+wysiwyg – resulting in something like <p class="Apple-style-whatever...">

    Thread Starter jonathas_scott

    (@jonathas_scott)

    dang it !

    I′ve changed all the main files to default theme, rearranged the html so now it gets the header and footer and checks for sidebar..

    Im under windows (wish i was under ubuntu instead) im using dreamweaver, but the code is exactly as I posted here…

    … no clue yet … i will see what else my newbie powers can do.. (hehe)

    IF you want to check the url it is https://www.echoes4ever.com.br/site

    Thread Starter jonathas_scott

    (@jonathas_scott)

    I′ve done a search on “id=top” and #top at my directory theme ate source level and coudn′t find anything.

    Is it possible the problem is somehow with the installation ? i′ve installed from zero, so the wp is brandnew

    thnks.

    Using DW for what? You don’t really need DW when working with WP.

    On the other hand… when you have time, read your own stylsheet:

    .s{
    	font-size: 100%; /*16px*/
    	line-height: 1.3em;
    	letter-spacing: 0.05em;
    }
    .ss{
    	font-size: 77%;/*10px*/
    	line-height: 1.3em;
    	letter-spacing: 0.05em;
    }
    .sss{
    	font-size: 55%; /*+-8px*/
    	font-weight:bold;
    	line-height: 1.3em;
    	letter-spacing: 0.05em;
    }

    so all that stuff comes from your theme!
    Maybe they have a readme or some explanation WHY.

    Thread Starter jonathas_scott

    (@jonathas_scott)

    Well actually I′m using DW because Im used to it… ??

    And the <p id=”top” /> is the problem not the <p class=”s”> I inserted “s” class manually writing the post. ;-D

    Updating:

    I re-upload everything, here is my index page:

    <?php
    get_header();
    ?>
    <!-- MAIN AREA CENTRALIZED -->
    <div id="mainarea">
      <!-- MAIN CONTENT -->
      <div id="main-content">
    <?php
    if(is_home()) :
    /* Here comes the HOME trick i check if this is the home
    wordpress has it as default, check the codex)*/
    ?>
    <!-- ========== FEATURED WORK ========== -->
    <?php if(have_posts()) : ?>
    	<?php while(have_posts()) : the_post(); ?>
    		<?php if(in_category('3')) : ?>
    <div id="featured-work">
        <div class="ribbon">
        	<img src="<?php bloginfo('template_directory'); ?>/images/ribbon.png" alt="echoes4ever" width="138" height="138" />
        </div>
        <!-- FEATURED INFO -->
        <div id="featured-info">
            <h2><strong>Featured</strong>Work</h2>
            <h3><?php the_title(); ?></h3>
          	<p class="sss">project date: (<?php the_date(); ?>)
    
            <p class="ss"><?php the_content_rss('', TRUE, '', 20); ?>
    
            <p class="sss"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">+ Details on this project</a>
    
        </div>
        <!-- IMAGE WRAPER -->
        <div class="image-wraper">
        <?php the_excerpt_rss(); ?>
        </div>
    </div>
            <?php endif; ?>
        <?php endwhile; ?>
    <?php endif; ?>
    
    <!-- ========== CONTENT BOX - INTRO ========== -->
    <?php if(have_posts()) : ?>
    	<?php while(have_posts()) : the_post(); ?>
    		<?php if(in_category('4')) : ?>
    <!-- CONTENTBOX -->
    <div id="content-box">
    <h2><?php the_title(); ?></h2>
    <?php the_content(); ?>
    <p class="s">Checkout <a href="#" title="Our Works - Portfolio">OUR WORKS</a> and <a href="#" title="Contact">drop us a line</a> !
    
    </div>
    		<?php endif; ?>
    	<?php endwhile; ?>
    <?php endif; ?>
      </div>
    <!-- ========== SIDEBAR ========== -->
    <?php
    endif;
    // Here ends the HOME trick
    ?>
      <!-- ABOUT ME -->
      <div id="about-me">
    
      </div>
      <!-- END ABOUT ME -->
      <!-- PORTFOLIO -->
      <div id="portfolio-home">
        <h3><span class="tit-chg-color">Casa</span>da<span class="tit-chg-color">Mae</span>Joana</h3>
        <p class="sss"><a href="#" title="See this project" >+ See this project</a>
    
      </div>
      <!-- END PORTFOLIO -->
      <!-- COLLABORATORS -->
      <div id="collaborators">
        <h3>Collaborators</h3>
      </div>
      <!-- END COLLABORATORS -->
    </div>
    <!-- END MAIN AREA CENTRALIZED -->
    <?php
    get_sidebar();
    ?>
    
    <?php
    get_footer();
    ?>

    Still it appears thath weird tag: <p id=”top” />. I will try to create another category and a new post on that new category to see if it happens as well.

    Thread Starter jonathas_scott

    (@jonathas_scott)

    I′ve done the new category and post thing, and it stills appears, please check the link: https://www.echoes4ever.com.br/site/

    ?? no clues ?? my newbie powers are running off…

    I think it’s default wordpress code.

    I was having a problem with wordpress automatically placing paragraph tags for my text. I didn’t want this to happen, so I had to edit some wordpress files in order to make it stop.

    I don’t know if this is the same problem as yours?

    Thread Starter jonathas_scott

    (@jonathas_scott)

    Humm.. maybe, but what is so strange is that it inserts an “ID” attribute, if it was a “class” I woudn′t mind, but since it is an ID the cone won′t validate.

    With that in mind i dought the wordpress team would come to a function that can create such mess.

    I will try to move on, and see if it continues happens.
    ??

    Thread Starter jonathas_scott

    (@jonathas_scott)

    :/

    So that was it ! i find out what was doing it all :
    The “InlinePosts Plugin 2.1.2.g – by Aral Balkan”. By some reason that i just can′t figure out it makes no sense at all…

    It refers to an #top anchor on the inlineposts.php file inside the plugin, and it is an <p id=top>, just to navegate to the top of the post.. wow ! no-sense at all to attach an ID to an element that repeats by nature (posts).

    So that′s it,

    …. portion of code attaching the anchor nav ….
    $topLink = '<a href="#top">Top</a>';

    …. portion of code attaching the id ….

    // Add top anchor
    $content = '<p id="top" />'.$content;
    
    // Add the TOC if user requested it
    $content = str_replace("TOC", $tableOfContents, $content);
    
    error_log($tableOfContents);

    Plugin disabled and now no validate problems happening.

    ??
    Thnks all specially moshu for the help and hope it helps improve the plugin as well.

    Thanks for the post- this plugin was causing the same problem for me.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Posts inserts automatic weird <p id=”top” /> tag within “the_content()”’ is closed to new replies.