View Full Version : Making popup pages search engine friendly
NormanRouxel
14-Jan-2004, 02:15 AM
Someone just posted that Google wouldn't index his popup pages.
This is fair enough as they're accessed via JavaScript URL's and Google, etc can't follow that.
I had a look at the popup code and found that by changing the Design / Text -1 / 2175 from
javascript:ShowPopUp('%s',%s,%s);
Which generates code that spiders can't follow like
<A HREF="javascript:ShowPopUp('info%5f7%2ehtml',400,400);">Click here for larger image...</A>
to
%s" onclick="ShowPopUp(this.href,%s,%s);return false;
then we'd generate
<A HREF="info%5f7%2ehtml" onclick="ShowPopUp(this.href,400,400);return false;">Click here for larger image...</A>
which should do the job as we now have a normal <A..> tag with a spider friendly URL.
The JavaScript popup still works and the main page shouldn't change
(to the popup URL) as we return false. Even better if your customer didn't have a JavaScript browser
they'd still get to the popup page.
Notes: This works on popups using Display By: "Clicking Product Image" and "Text Link" but you
should not use "Extended Info Button".
Tested with IE6, Netscape 7 and Opera 6.
Bugs. It seems to fail on IE with NorCascade installed (but is fine on Opera and Netscape).
The simple solution would be not to use this patch or use NorTree instead.
Norman
PS If you really need to use Extended Info Buttons then replacing
Act_ExtendedInfoButton.html with:-
<INPUT TYPE="BUTTON" VALUE="NETQUOTEVAR:BUTTONLABEL" NAME="NETQUOTEVAR:BUTTONNAME" onmouseover=this.href="NETQUOTEVAR:LINK">
Seems to work but the generated code is too hairy for me to feel comfy with.
Mike Hughes
14-Jan-2004, 08:27 AM
If you want the search engines to index your pop-up pages then you should probably include a link to your home page on the pop-up page. Otherwise anyone who comes to that page via a search engine has nowhere to go other than back to the search engine (and the PR of that page never gets re-cycled back into your other pages).
The problem of course is that you then run the risk of a customer viewing a pop-up and then continuing on your site in the pop-up window.
I was never sure what the best thing to do is, so I avoid pop-ups for anything important that I might want indexed.
Mike
NormanRouxel
14-Jan-2004, 12:58 PM
The popup code as supplied by Actinic is quite clever.
When you hit the Close Window icon it checks to see whether it's been called from a Catalog page. If so it just closes.
If called independently of Catalog it does, in fact, take you to the home page of the site.
Norman
Mike Hughes
15-Jan-2004, 09:32 AM
I like that.
My final question would be whether the search engines can follow that link to the home page. It would be really nice if they can.
Mike
jacy
15-Jan-2004, 10:26 AM
Hiya Norman,
How's your Mums garden :D
I'm using extended info buttons with all my products and was interested in using the code you mention above. If it's going to help with the search engines then why not!!
But before i do what do you mean by it's to hairy for you? do you mean there could be errors if i use it?
would i just change
changing the Design / Text -1 / 2175
as mentioned earlier?
Cheers,
Mitch
NormanRouxel
15-Jan-2004, 10:41 AM
OlderScot.
No that home page ling is via more JavaScript and Perl so it won't be followable. I'd recommend hard-coding a link (that may not be so useful if you're using business).
Jacy.
That "hairy" code works (in IE6, Opera6 and Netscape7 anyway - that's all I test with), but is slightly illegal JavaScript.
The button would work but would not be followable by search engines so it would be best to have a text or image link available as well.
It would be possible to replace that button template by an button like image I think. I'll have a think about that and see what would work.
Norman
NormanRouxel
26-Jul-2004, 05:24 PM
I just tested this further and it seems to work OK if you are using an Extended Info button but of type Image (as per Design / Options / Shop Defaults).
I'd recommend this route rather than the Form Button type.
Tested OK with IE6, Mozilla 1.7.1 and Opera 6.
Norman
Buzby
16-Aug-2004, 09:40 PM
I carried out these changes about a week ago. Both the picture link and “More” button work on all products and within 1 week Yahoo has increased its number of pages listed for me by around 50%.
I have however discovered a small bug and that is if you click on the button of a product that you found using the search function on the site you get a 404 error. The picture link still works though.
Any idea on a fix for this?
Many thanks
Jason
www.qualitysilver.co.uk
Buzby
16-Aug-2004, 09:47 PM
Forgot to say that theses changes were made to V7
Regards
Jason
www.qualitysilver.co.uk
NormanRouxel
17-Aug-2004, 07:08 AM
Try (as suggested above) using an Image as the Extended Info Button.
Norman
swee
18-Aug-2004, 03:23 AM
Hi all,
Maybe i know which is the template that we can add "additional links" that can lead our pop page back to home page?
yours,
swee
cdicken
18-Aug-2004, 09:08 AM
The templates for the pop-up pages are as follows:
Act_ExtendedInfo.html=Name and info text displayed right of image
Act_ExtendedInfoImageAbove.html=Name and info text displayed below image
Act_ExtendedInfoLeftText.html=Name and info text displayed left of image
Act_ExtendedInfoNoName.html=No name shown, info text below image
Act_ExtendedInfoNoName2.html=No name shown, info text right of image
Act_ExtendedInfoNoName3.html=No name shown, info text left of image
These can be found in the 'Site1' folder. You can add anything you want into these templates.
swee
19-Aug-2004, 05:28 AM
Hi,
There are so many templates and i have chged the one called "Act_extendedinfo.html". as i thouht it was for the main overall popup Menu. however, after amending,saving,uploaded ( but prompt some error with the "SRC"), eventually when i open the popup window, there was no difference from the past. This was what i have added to the notepad:
<TR>
<TD valign="top"><a href="Http://www.hst.com.sg">Click here to Visit our <b>Homepage</b></a></TD>
</TR>
Are there anything wrong? or added at the wrong template? :o
But because it affects my uploading, i took it away and it was fine after the removal.
cdicken
19-Aug-2004, 03:26 PM
The problem is Ron, you don't want a link to your home page within the pop-up page. The reason for this is that all that will happen is that the home page will load up within the pop-up page - and the main page will still be open behind the pop-up page. The whole thing would look a bit odd.
If you still want to do it, I suggest going to 'Design | Options | Layouts' and clicking the 'Edit' button next the bottom field ('Page Layout'). Locate the code that reads: <tr>
<td valign="top">NETQUOTEVAR:INFOTEXT</td>
</tr>and change it to read: <tr>
<td valign="top">
NETQUOTEVAR:INFOTEXT<br>
<a href="http://www.hst.com.sg/">Click here to Visit our <b>Homepage</b></a>
</td>
</tr>
Buzby
19-Aug-2004, 05:07 PM
I have a home link on my pop up page, but this is set to open in a new window. I use this to get search engines to link back and so that if someone finds one of these pages via a search engine they can navigate to the home page easily.
Regards
Jason
www.qualitysilver.co.uk
swee
20-Aug-2004, 03:11 AM
Jason, I have seen your homepage and that is what i want too. how did you do that? Where did you add your URL in? Can u specify the template that u have added it on pls? cos i'm unsure of which template. :confused: Thank you.
Buzby
20-Aug-2004, 05:06 PM
Each section was made using either Dreamweaver or Frontpage and then I pasted the HTML into a fragment window within the first page of the site. Each section has its own fragment so that editing is easier in the future. If you use this approach then you will have to surround your html with !!< your html here >!! So that Actinic knows that it is html and not just text.
Regards
Jason
www.qualitysilver.co.uk
swee
21-Aug-2004, 04:28 PM
i dont get what u mean. Which template was it in eh?
Buzby
22-Aug-2004, 11:02 PM
Go to the first page in the content tree and right click. Choose new fragment.
Decide on a layout option that uses text. Type !!< add your pre written html here. type >!! and hit apply.
Now Preview the page for an idea of how to do it.
Just add more fragments as and when you need them.
Regards
Jason
www.qualitysilver.co.uk
Buzby
22-Aug-2004, 11:10 PM
See enclosed example.
Regards
Jason
www.qualitysilver.co.uk
swee
23-Aug-2004, 04:01 AM
I think you got me wrong. Haha, what i meant was the URL address that you have added onto every one of the POP-UP box which in turn bring you back to the homepage. not creating new fragment? I am asking how u did that cos i do not have the URL on the popup page. =\ Chris gave me a few of those extended info template but i do not know which one was the main one. ya.. so anyone knwos where i can add the url in the popup box? :confused:
cdicken
23-Aug-2004, 09:16 AM
Ron
Sorry, but I genuinely have no idea what you are asking here. Are you:
1) Asking how to include a link to your home page into your extended information pop-up pages generated by Actinic.
or
2) Asking how to open your home page into a new pop-up window when people click a link on your store pages.
Could you please explain further?
swee
23-Aug-2004, 03:09 PM
I'm sorry. Anyway, what i meant was a HYPERLINK OF MY HOMEPAGE to be included at the POP-UP BOX. U showed me quite a number of Act_xtended.html template right? however, i do not understnad which is the one that controls the entire pop-up menu. Or do i need to change one by one?
cdicken
23-Aug-2004, 03:48 PM
Could I ask you to go to any product in your store and go to the 'Extended Information' tab.
Look at the 'Layout' field. You will see there are a variety of different layout templates for pop-up windows. Each option in that lists corresponds to one of the templates in the list I gave you in my earlier post.Name and info text displayed right of image=Act_ExtendedInfo.html
Name and info text displayed below image=Act_ExtendedInfoImageAbove.html
Name and info text displayed left of image=Act_ExtendedInfoLeftText.html
No name shown, info text below image=Act_ExtendedInfoNoName.html
No name shown, info text right of image=Act_ExtendedInfoNoName2.html
No name shown, info text left of image=Act_ExtendedInfoNoName3.html
You need to find which is the one that your products are using. If the 'Layout' drop-down list in the 'Extended Information' tab says 'Use Parent' then the template it will be using will be the default one set in 'Design | Options | Layouts'. Find the 'Default Page Layout' field (at the bottom of this window) and click 'Edit'. Enter the code I gave you into the template that opens.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.