Forum Moderators: phranque

Message Too Old, No Replies

On page optimization

how to move code at the end of a page without changing the graphic

         

Loki03

9:32 am on Dec 12, 2008 (gmt 0)

10+ Year Member



Dear all

I have just updated my website with a booking system box available in every service description page.

I have recently relised that, due the way the product page is structured, the first thing a spider see in this page is the sequence of days, months, number of reservable items etc etc of this box and only after the actual description of the service..

I do not know if this really can influence in any way my position in the SERP, in any case I feel like I should move these useful (for the spider) text at least to the bottom of the page...

Problem: I would like not to change the graphic of the page by moving in another side the booking box...

Any ideas?

thanks in advance

Loki03

[edited by: phranque at 10:39 am (utc) on Dec. 12, 2008]
[edit reason] removed specifics [/edit]

Quadrille

8:49 pm on Dec 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could move it using css; the css can be in the order you choose, and tell the page to appear how you choose it to appear.

But I think the consensus these days is that the SEs read the whole page, so order is not so important. It may be that css forced that change!

Provided of course that:

1. They can, and
2. the page is not soooo long that they fall asleep trying.

Loki03

3:09 pm on Dec 15, 2008 (gmt 0)

10+ Year Member



it doesn't look like something possible, any further ideas?

rocknbil

3:53 pm on Dec 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this link, it leads to threads on this site for source ordered content [google.com]. The first result is an excellent overview by pageoneresults.

JS_Harris

2:24 am on Dec 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



When you right-click and view source the text you read is what the engines see in the same order. The trick is to have the "code bloat" be either at the bottom of the page or in an external file. Just because something is at the top of a page when you look at it doesn't mean it's written at the top of the file.

Many websites have a "sidebar" that is called with php get_sidebar() for example. You can place that call almost anywhere in your template and it will still LOOK like it's where you want it visually. Check the right-click + view source however and you'll see that if you called the sidebar from the top of your code the sidebar code comes first. If you call the sidebar at the end of you code the sidebar content shows up at the bottom of your source code.

My suggestion, move the reservation script its own php file and call upon it from the bottom of your main pages code. Give the new file a class and define the class in .css as mentioned above.