Showing posts with label links. Show all posts
Showing posts with label links. Show all posts

Tuesday, May 14, 2013

Test linking to particular spot in different webpage

Testing this link to particular methods (spots) in a post about how to recover an accidentally deleted post:

Method 1

Method 2

Friday, July 16, 2010

Testing sub-domain link from commentator

Below is the hyperlink of a Blogger.com sub-domain taken from comments over at How to create sub-domain with Custom Domain using standard HTML hyperlink tag <a>
. Try clicking on it and see what happen:

Open in new window:
Everything Is There to See

Open in same window
Everything Is There to See

Thursday, November 08, 2007

Testing a hyperlink for a blog reader

A blog reader contacted me saying he is having problem in posting a hyperlink

<a href="http://www.****.com">abc</a>
(NOTE: URL and anchor text edited as that is a link to the blogger's advertiser with which I have no relationship)

as he is getting the error message:

Your HTML cannot be accepted: Tags cannot enclose tags a href="<a href="


To me, that HTML for the hyperlink looks perfectly OK, so just don't understand why he is having problem. So what to do? Simple. Test it. Published and tested, and the hyperlink worked exactly as it should. You can click on it to confirm if you wish.

Tips and Tricks for Blogger (NOTE: hyperlink changed to link to my own blog which is slated to be converted to custom domain)

The HTML for the hyperlink as originally given to me by the blogger obviously worked, and after demonstrating that it worked in this post, he replied saying that everything is OK now, and attributed the problem to the template. I am curious as to how the template can affect the hyperlink and will ask him how he managed to solve the problem. Just wondering if something in the CSS (Cascading Style Sheet) can cause such a problem.

Thursday, October 05, 2006

Testing a link for a blogger.

Someone posted on Blogger Help forum that the link to her blog isn't working properly in Blogger Beta. Here is the extract from her post:

"Here is my blog http://sherrywu.blogspot.com
when you link it, it probably will be shown once if lucky, but it won't
work if you try the second time."

Here is the hyperlink to her post.
Go Chat Blog

I am going to post it and try it out.

Thursday, September 21, 2006

Making links in a Blogger Beta link list open in new window

Note: Please see updates at bottom of post

Note: As always, whenever you make changes to the template, backup the current template PLUS the Page Elements first. Refer to Backup and edit New Blogger template or Backing up and changing New Blogger template. Remember also to edit your Page Elements one by one and save them into preferably the same folder as the one where you save the backup template. Some Page Elements may be deleted or become empty Page Elements if you reload the backup template.

In Blogger Beta, if you add a Link List, the links created open in the same folder by default.

Here is how you can make links open in new windows/tabs. Sign into Dashboard, for the relevant blog, click LAYOUT, then EDIT TEMPLATE. Check EXPAND WIDGET TEMPLATES. You will need to look for a block of code. I find the easiest way to find line of code in long template is to use the "Find" function in Notepad. (Note: See update 28 July 2007 at the bottom of the post)

After the template has been expanded, click inside the template window and press ctrl+A to highlight the whole template and then click ctrl+A to copy it into the clipboard (or click inside the template editor window, right-click and chose "copy"). Open a Notepad file, paste the expanded template into the Notepad.

Look for this block of codes:





<ul>
<div id='link'>
<b:loop values='data:links' var='link'>
<li><a expr:href='data:link.target' ><data:link.name/></a></li>
</b:loop>
</div>
</ul>



Look particularly for this code:
<li><a expr:href='data:link.target' ><data:link.name/>

If you have done as suggested, that is, paste the expanded template into Notepad, searching for that line of code will be much easier. Click EDIT in the menu bar at the top of Notepad and chose "Select all" to highlight the whole template. Click EDIT > FIND in the menu bar again and enter part or all of the code you want to look for into the "Find what" box. Notepad will find that and highlight it.

Replace it with
<li><a expr:href='data:link.target' target="new" ><data:link.name/> (in other words, add target="new" after expr:href='data:link.target'. Make sure there is a space between expr:href='data:link.target' and target="new" (see update below).

Click inside the edited template in Notepad, press ctrl+A to highlight the whole edited template, then press ctrl+C to copy into clipboard (or right-click inside the Notepad and chose "copy"). Go back to the template editor window. The original template should still be highlighted. Click the DELETE key. The template editor window should now be empty. Click inside the template editor window and press ctrl+V to paste what you have copied into clipboard (or right-click and select "paste").

Preview to ensure everything is OK. Save template and check that the links actually open in a new window. This has been done for this blog. Try clicking on the links in the link lists (Blogger Resources) and confirm that they actually open in a new window/tab.

Acknowledgement: This is a blog for testing. This post was in response to a reader who asked how to make Link List in New Blogger open in new window and if I remember correctly, was probably used to test the method given by Linklists don't open in a new window and new hacks and this post is probably adapted from his hack and made simpler for people to implement the hack.

UPDATE: 2 person commented of problems executing this hack. Read the comments. I retested it for this blog Good Health Information and confirmed the hack work. Check for yourself. The link list is titled "Blogger Resources" and is the second last in the right sidebar. Click on the links and confirm for yourself that they open in new windows/tabs. Just a note. Make sure that there is a space between
expr:href='data:link.target'
and
target="new".

Update 28 July 2007: Instead of using Notepad to help you locate some section of the template, you cab also press ctrk+F to get the section you find direct in the template editor window: use ctrl+F to find section of code direct in template editor window


Update 10 August 2007: Many webmaster are of the opinion that making links open in new window/tab is a bad practice and may drive visitors away and it should be left to visitors whether they want link to open in the same or new window/tab. I have made previous survey and have found the majority of those who responded prefer links to open in new windows/tabs, which is also my preference as I find closing new windows/tabs easy to do. Further, not everyone is Internet savvy and most will not know how to make link open in new winddow/tab for a link configured to open in the same window. However, I like to keep my visitors and have no wish to discourage any from visiting again. I have this set up a Poll at the bottom of the left sidebar of Blogger Tips and Tricks. However, Polls are not working now. Blogger is aware of the problem and is trying to solve it. Hope they get it working soon. You may be interested in keeping track of that poll.