• Resolved samloka

    (@samloka)


    Hi, I’m trying to validate my code with total validator and i can’t resolve one specific problem.

    I’m new to wordpress so I learning on the fly how everything is connected here. Till now, succeeded to resolve most of the problems, except this one:

    257                 <p>
     257 next problemprevious problemE604 The matching end tag appears to be missing:
         E871 [WCAG v2 1.1.1 (A)] Link text is missing:
                           <a href="https://www.tusvesa.info/archives/31#more-31" class="more-link">
     257                   <br />
     257                   Read the rest of the entry &raquo;
     257                 </p>
     258                 <p>
     258 next problemprevious problemE020 No matching start tag found:
                           </a>
     258                 </p>
     259                 <br />
     260                 <strong>
     260                   Tags:
     260                 </strong>

    I’m looking into my code and I see

    <?php the_content('<br />Read the rest of the entry &raquo;<br /><br />'); ?>
    <br />
    <?php the_tags('<strong>Tags:</strong> ', ', ', ' '); ?>

    So I looked in the post_template.php, found the line where the link is created but no clue to why is I have this tags mess up in the lines…

    I also use firebug, and there I see that I have no “<p>” and “</p>” tags inside my linking tags! Only some “</p>” tag without a “<p>” tag before the tags call.

    Any ideas?… It might be me, writing somewhere unnecessary “</p>” or “<p>” tags, but I can’t think of any place that I didn’t looked in already… index.php, header.php, functions.php…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Post a link to your site.

    Thread Starter samloka

    (@samloka)

    TusVeSa

    you can try to validate it by total validator to see it by your self and compare it with firebug….

    Thank you!

    From your site:

    <p> <a href="https://www.tusvesa.info/archives/30#more-30" class="more-link"><br />Read the rest of the entry &raquo;</p>
    <p></a></p>

    Try changing:

    <?php the_content('<br />Read the rest of the entry &raquo;<br /><br />'); ?>

    to

    <br /><?php the_content('Read the rest of the entry &raquo;'); ?>
    <br /><br />
    Thread Starter samloka

    (@samloka)

    Hi!
    It really worked out!
    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Validating my code and can’t figure out one annoying problem!’ is closed to new replies.