Forum Moderators: coopster

Message Too Old, No Replies

Is line break above DOC declaration going to be problem for indexing?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ".....

         

tvldeals

5:25 pm on Jan 23, 2007 (gmt 0)

10+ Year Member



I am concerned.

I have a WordPress Blog site but its part of my own domain. Not hosted by them.

If you go to my site and view source you will see I have a line break above the DOC declaration.

Somewhere else I read that it has to do most likely with a white space above a file (either header, main template or plug-in)

Well I was more thorough than that. I looked at everything LOL.

2 had line breaks above them and 3 below the ending tag. Of course I cleared that up.

However I see NO change. Not sure if this has something to do with the reason my BLUE sidebar on the LEFT is also extending above the navigation area or not. You'll see on the RIGHT sidebar it is not. The right side bar is the way it should appear, by default.

Perhaps if I corrected THAT it would fix the problem. I know I am grasping at straws but feel its important to correct since it appears this makes it more difficult for search engines to find you.

If anyone can look at my source code and advise, I would appreciate it.

Having one of those pull your hair out moments!

Can someone take a look at my source code to see if there is something present that might be doing this, that I am not seeing?

These are the only plugins I have activated.
Tried removing all and no difference.

WordPress Database Backup
Add Meta-Tags
Akismet

I have one in there for Adsense but have it disabled.

Here is something else that might give a clue.

When I view the source code on each individual post, the doc type is where it should be, right up to the top with NO space above it.

GO FIGURE.

However if I select that same post, from RECENT POSTS area, and THEN view the source, I do get the blank area above the doc type when I view source.

Any insight? I am concerned this line break issue might be responsible for my page load issues.

I will list my web adress under my PROFILE here so you can find it.

Thanks again for any help you can provide. The WP support forum has not been much help at all.

whoisgregg

5:29 pm on Jan 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This may seem like a silly question, but I've made this mistake many times... Have you uploaded the changed files and emptied your browser cache?

tvldeals

5:33 pm on Jan 23, 2007 (gmt 0)

10+ Year Member



When you state, "have you uploaded the changed files" and emptied your browser cache....

I did empty the browser cache.

Yes I have also uploaded the changed files, for the ones that previously were showing the spaces.

Like I said I am soooo ready to pull my hair out.

coopster

10:30 pm on Jan 23, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



As far as the space above the declaration is concerned I would locate the process that is writing the declaration out and start there. Also make sure you don't have a goofy
auto_prepend_file
or something else pushing extra space or newlines out.

tvldeals

10:55 pm on Jan 23, 2007 (gmt 0)

10+ Year Member



I really don't have a clue and I am being quite honest here.

This is my footer but you will notice at the bottom if makes reference to the top of the navigation.

It clearly probably has nothing to do with anything but grasping at straws here.

That other issue you speak of I don't think is the case.

I've obviously placed X's here where the urls are referenced.

<div id="footer">
<p>&copy; 2007 <a href="http://www.#*$!#*$!X.com">#*$!#*$!XX</a>.</p>
<p>#*$!#*$!X<strong> is brought to you in proud partnership with</strong> <a href="http://www.#*$!#*$!X.com" title="GETAWAY SPAS">#*$!#*$!XX</a> <strong>and powered by</strong> <a href="http://wordpress.org/" title="Wordpress">WordPress</a>.</p> <br />
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=#*$!#*$!;
var sc_invisible=1;
var sc_partition=5;
var sc_security="#*$!#*$!";
</script>
<script type="text/javascript" language="javascript" src="http://www.website.com/counter/counter.js"></script><noscript><a href="http://www.website.com/" target="_blank"><img src="http://c6.website.com/counter.php?sc_project=2179794&amp;java=0&amp;security=#*$!#*$!XX;invisible=1" alt="free web hit counter" border="0"></a> </noscript>
<!-- End of StatCounter Code -->
</div>
<div id="navigation">
<ul id="nav">
<li><a href="http://www.#*$!#*$!.com/" title="Home: #*$!#*$!X">Home</a></li>
<li class="page_item"><a href="http://www.#*$!#*$!X.com/?page_id=2" title="About">About</a></li>
<li><a href="http://www.website.com/?feed=rss2">RSS</a></li></ul></div>
<div id="breadcrumbs">
You are here : <a href="/">Home</a> &raquo; 2007 &raquo; January</div>
<div id="searchCSS">
<form method="get" id="searchform" action="http://www.#*$!#*$!XX.com/">

<input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="GO" />
</div>
</form>
</div>

<!-- 22 queries. 0.391 seconds. -->

</body>
</html>

[edited by: dreamcatcher at 11:03 pm (utc) on Jan. 23, 2007]
[edit reason] Generalized urls. [/edit]

coopster

11:30 pm on Jan 23, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Actually it does not refer to the top of your page (in source code speak, so to say). The stylesheet is putting that breadcrumb at the top of your page more than likely (I don't have the time right now to investigate that part of it).

What I am referring to is where in your system is the actual doctype declaration being printed out? Is it in a function somewhere? Search through your source code to find 'DOCTYPE' and see.