• Does anyone know if Black letterhead gets messed up in different browsers? or just randomly? A few people have told me when they go to my site, they can’t see the sidebar or the sidebar is at the bottom. But everytime I go to the site, it always looks fine, so I don’t know how to address this problem.

    Any suggestions?

    https://ima.hunter.cuny.edu/~broderickg/wordpress

Viewing 13 replies - 1 through 13 (of 13 total)
  • I don’t know if it’s the theme or you, but there are several errors with commented out parts – try to validate your site:
    https://validator.w3.org/check?verbose=1&uri=https://ima.hunter.cuny.edu/~broderickg/wordpress/
    I suspect different browsers interpret differently the faulty comment-out tags.

    Thread Starter garybroderick

    (@garybroderick)

    I’m sure it is me. I’m very new to wordpress or any type of programming at all, I clicked on the validation link it said failed validation 17 errors. I don’t know what that means, and I don’t know what comment out tags are. Please help. Thank you.

    If a code portion is between
    <!-- and --> it will NOT appear in your page displayed.
    The validator says that you have wrong code for commenting out, e.g. instead of the correct closing --> you have --!> which is wrong.
    Go through all your template files and correct them.
    (Hint: if you check the “Show Source” box, and Revalidate – it will show you exactly where the errors are.)

    Thread Starter garybroderick

    (@garybroderick)

    Thank you! Okay so I’ve eliminated the ones you referenced where I commented out wrong, now I have 8 error messages left, 7 of them say

    document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag .

    I’m not sure how to adderss it because I don’t know what it means, and what its asking for. Suggestions please.

    Thread Starter garybroderick

    (@garybroderick)

    So, I understand the fundamentals better now, in terms of what

    • and
      mean, but I still haven’t been able to fix these problems. If I add a
      to enclose the

    • it adds another bullet point. Also, some of the places the validator is finding erros, I can’t find in the theme editor, is it possible its in the wordpress original files? I have six errors left, five of them have the same error. Maybe you can walk me through fixing 1, then I’ll be able to fix the rest. This is the first one…

    Error Line 94, column 19: document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag .

    <li class=”pagenav”><h2>about</h2>

    The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.
    One possible cause for this message is that you have attempted to put a block-level element (such as “” or “<table>”) inside an inline element (such as ““, “<span>”, or “<font>”).

    Thread Starter garybroderick

    (@garybroderick)

    okay so when I sent in that last post apparently it took some of my text as coding. I apologize.

    If you post code snoppets – follow the instructions below the text input area here: Put code in between backticks.
    (usually on the same key as the tilde ~)

    1. Close this li
    <li><h2><a href="https://ima.hunter.cuny.edu/~broderickg/wordpress/">home</a></h2>
    2. Make the <br> like this <br />

    Thread Starter garybroderick

    (@garybroderick)

    Okay, I’m down to 2 errors, but I can’t find what pages they’re on. Is there any way to get the validator to tell you what page the error its on? It seems to refer to the line and column number, but I don’t know what page. Will all the errors be accessible from theme editor? or is it possible that some of the errors will be in WordPress original files? and then, where should I look first? I ask because it tells me the errors are on line 189 and 203, and most of the files within the Black Letterhead theme editor don’t even have that many lines.

    As I said earlier:
    (Hint: if you check the “Show Source” box, and Revalidate – it will show you exactly where the errors are.)
    Meaning, after re-validating with the Show Source box checked, in the error description the line number will be a clickable link that will lead you exactly to the error’s line.
    [one is in your sidebar, the other in the footer]

    Thread Starter garybroderick

    (@garybroderick)

    Thank you for all your help. I’m down to one error, I’ve been trying to figure it out, trying different combinatins for hours, but I don’t see anything wrong with the code.

    It says Line 189 column 20: document type does not allow element "ul" here; assuming missing "li" start-tag.

    <li><h2><?php _e('register and blog'); ?></h2></li>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <!-- <li><a href="https://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
    <li><a href="https://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> -->
    <li><a href="https://www.ads-software.com/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>">WordPress</a></li>
    <?php wp_meta(); ?>
    </ul>
    </li>
    <?php } ?>

    </ul>
    </div>

    And it’s right what it says: on line 195 you have a closing </li> which is not opened, I guess, and the validator is “asking” for an opening li ??
    It comes down to the nested lists, it’s a very tricky issue.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Black letterhead in different browsers’ is closed to new replies.