 View Cart Login       

Doodlekit

  • Home
  • Pricing
  • Examples
  • Blog
  • Forums
  • Contact
    • My Website Issues
    • Non-Profits Website Support
    • Business, Sales & Product Inquiries
    • Suggestions & Feedback
    • Report Doodlekit Website Abuse
  • Our Secret
Doodlekit Free Website Builder

Free Website Builder

Get Started Now 

 Doodlekit 2.0

New Release!

Exciting News! Doodlekit Release 2.0
is now out! We have a NEW online template builder, more design tools, advanced SEO options, and much more. Sign up for our free website builder today!

 New Release Buzz...

Your hard work has finally paid off. My website has never looked better. I'm proud to point my customers to my site thanks to Doodlekit. I had a blast testing things out and found very few issues. A job well done.
- Jonas Winfield

I have been playing around with the new features and I'm in love... :). Absolutely superb, easy to manipulate, the color combination are endless, the overall feeling is just fantastic. Bravo for your amazing work!
- Rachel Potvin

So far so good, enjoying my site. After messing around with several other website builders I like the Doodlekit framework the best. Very clean :). I won't be going back to WordPress.
- CJ Black

 Login

 Forgot Password?
 Back to Blog

Auto Scroll Down Links (Internal Anchors)

Heath Huffman
 02/17/2009 10:37AM

Before reading this, click here to make sure you are at the actual blog post... not the 5 post preview:

Click on this link: Take me to Link 1

How did I do that you ask? I have had this question asked of me several times by the Doodlekit community, so I finally gave in and posted the solution :).

At some point you may wish to create a link or anchor on a web page that takes you to the bottom of the page automatically. Or you might just want it to scroll you midway down to a certain point. These types of links are called "Internal Anchors" and they are easy to create.

First, these links can only go to other links. So you must create two links - one link the user clicks on and the other link that the user will automatically be scrolled to. Go ahead and do this first.

Second, you're gonna have to look at code (It's OK! This will be easy!).

Highlight your first link in the editor and then click on the 'HTML View' button to see the code. You will need to 'tweak' the code a bit. Here is the example code for the link above:

<a href="#link1">Take me to Link 1</a>

In the 'href' value, put a '#' followed by the name of the link you will link to. In this case, I named the link below 'link1'.

Go back to 'Edit View'.

Now scroll down to the second link. Highlight this second anchor and then go into 'HTML View'. Here is the code for the destination link that you want the previous link to take you to :

<a id="link1">Link 1</a>

Here you add an 'id' attribute and.... (drum roll) you give it the same name you told it link to from the first link. Always make sure the ID is unique. DO NOT PUT IN THE '#' AS PART OF THE ID! If you want it to actually link to something, you can, of course, by adding the href attribute and giving it the URL you want it to link to. If this link is just a place holder for you to scroll down to, you can just leave out the href all together. This will make the link do nothing when it is clicked.

Click 'Save' and you're done! Enjoy!

Link 1

Neat Huh? Now click on this link to go back to the top: Take Me Back To Top!

Tags: doodlekit, website builder, code, custom code, custom coding, Tips, auto scroll, internal anchors

 Comments

 Renée Paule My Website  02/21/2009 05:33PM 

Hi guys,

I would love to use this on my blog, but there is nowhere logical to put the second link ... for example just before the comments form: I can't edit the page, only the blog itself. Could you incorporate it into the blog format? On this site too I have to scroll down on some of the longer blogs and forums when reading through them. What do you think? Also, is it possible to use this formula to link to another page on my site. I would like a link on my 'home page' to link to another on my 'useful links' page.

Renée Paule

 Heath Huffman My Website  02/24/2009 05:02AM 

Hi Renée,

These types of links really aren't used that often, and definately not enough for us to implement them into our framework - sorry :).

You can place them any place in your blog content or on any page - that will probably be where you would use them anyway 99% of the time.

 Renée Paule  02/24/2009 05:25AM 

ok thanks Heath ... just a thought. Oh and by the way ... I LOVE the forms .. they are so easy to use.

 Renée-Paule  05/27/2009 08:15PM 

I give up with this Heath and Ben. I have no idea how to create the original links. Have been trying on http://www.falconryfriends.com/home/test_page<p>En Français</p> with no luck at all I there is nothing marked href anywhere. I want to create links to scroll down to French translations on some of my pages.

<p>
<script type="wrappedobject">//<![CDATA[
<iframe src="http://www.google.com/calendar/embed?height=700&#38;wkst=1&#38;bgcolor=%2399ff99&#38;src=vigoureux.gibson%40gmail.com&#38;color=%232952A3&#38;ctz=Europe%2FParis"; style=" border-width:0 " width="480" height="700" frameborder="0" scrolling="no"></iframe> //endwo]]></script>
</p>
<p>In English</p>

Help please.

Thanks

RP

 Renée Paule  05/27/2009 08:17PM 

Not sure that is all clear. The problem is that i can't create the first two links???? they have the same URL????

 Heath Huffman My Website  05/29/2009 04:09AM 

Hey Renée,

I'll shoot you an email... I'm not sure what your trying to do here...

 Philip Riley My Website  12/09/2009 10:36AM 

Hi Heath,

Is it possible to link from one page to an anchor link on a completely separate page? Or does the anchor link have to be on the same page as the original link? For example, we have a web page for a book we are publishing, and I would like to link from the list of authors on the home page to where each author's bio appears on the separate "author bios" page. Thank you.

 Heath Huffman My Website  12/11/2009 03:02AM 

Hi Philip,

Yes, this easy to do. Just add #(and the id) to the end of the page URL you want to use. Here is some example code that used the 'link1' id above:
http://pastie.org/738963

 Rick Lewis My Website  12/22/2009 07:19AM 

Heath;
I have the same problem that Renee described on May 28, 09. You did not respond in the blog how to address that. In trying to establish the first link, I do not get href. When I try typing that in, it doesn't help. Any thoughts?
Rick

 Heath Huffman  12/22/2009 08:29AM 

Hi Rick,

Are you doing this through the 'html' code view?

 Rick Lewis My Website  12/24/2009 11:34AM 

Heath,
I spent some more time, and actually got it to work. Wow! So now, how do I get this to link to another page?

 Heath Huffman  12/28/2009 09:55AM 

To create a link to a different page just highlight the word and click on the 'chain link' button in the editor. Paste in the URL to the page there.

 gabriel My Website  08/15/2010 05:17AM 

Thanks a lot for this. I have been looking for this tecnic in spanish but could not find it.

 Mike My Website  09/27/2010 06:13PM 

Great, thanks for the info - very helpful code!

 liacokelat My Website  12/23/2010 10:37PM 

thank u so much!it worked for me :)

 tina My Website  12/30/2010 06:53AM 

I have read through this topic several times ... I just don't get it! I am trying to create links that scroll down the page in a newsletter. I have the topics under the newsletter header and I want them to jump down to the topic title when the reader clicks. Sounds like exactly this topic.
I don't get how to create the FIRST link??? How do you do that?? Be gentle I know nothing about html coding.

 Ryan  08/08/2011 12:45PM 

what about linking to an anchor in another window?

 Ben Kittrell  08/09/2011 10:09AM 

You can create a link to a new window by clicking the "Open in New Window" Checkbox

 Judy Manley  09/09/2011 08:48AM 

Hi.. I am trying to do something similar and am hoping you know if this is possible. I have a display area at the top of the page, then a large area that has a <div overflow. The idea is that the information at the top of the page stay in view while the information in the overflow is scrollable.

If someone clicks on an area in the overflow it changes the display at the top. This all works. Now I'd like to make it so the clicked field in the overflow (scroll) area moves to the top of the scroll area.

I first implemented this with the # as you described above but as you can imagine the page scrolls up and now the display area is no longer visible. Is there anyway to have it only scroll within the scroll area not the page?

 Heath Huffman My Website  09/09/2011 11:03AM 

Judy, it sounds like you might be trying to make something harder than it needs to be. The 'display area' is different on every laptop, computer, mobile phone, etc. You should consider working within the constraints of natural web design and embrace usage of the vertical scroll for the whole page (not just a div).

 Paul  09/12/2011 04:45PM 

Cant find any way to purcahse anything from this site????

 Carolyn My Website  11/01/2011 11:01PM 

I hope this post isn't dead because I need help. When I used this, it works except it opens it in a new tab. Anyway to make it just scroll down or whatever?

 Heath Huffman  11/02/2011 01:27PM 

The code I provided will not open your link up in a new window unless you modified it. If you did not, it might be a browser setting. Try a different browser and see if it still does the same thing.

 Gabriel  03/15/2012 09:33PM 

Same problem as Carolyn. I pasted into my blog PAGE text full of anchors from an HTML page where the anchor links work. But in the blog page, using both the latest Safari and Firefox browsers, ALL the anchor link actions open a new window/tab in presenting the correct action result.

 Gabriel  03/18/2012 11:06AM 

Found the problem. It was an SEO setting. Apparently, I was unaware it was a global action setting.

 Matt  07/26/2012 11:35PM 

Thanks for making my life a whole lot easier! Very simple and to the point. I wish I would've found this article a few hours ago... :)

 Emmanuel Obarhua My Website  09/29/2012 09:23AM 

At last I got it right. But I didn't do it on a post but a site you can check it out wwsurfers.blogspot(.)com Its lovely I also used image and not text. Thanks Huffman, I was only able to do this cos your tutor was just explanatory.

 Miro  01/05/2013 05:22PM 

i love you! :)

 Post a Comment



 Blog

  • New Templates: Business Group
  • New Design Tools Update
  • Doodlekit New Release Is Out!
  • New Release On Real Websites
  • Beta New Release Scheduled To Start Thursday, April 4th
more  

 Blog Comments

  • Heath Huffman: New Templates: Business Group
  • Phelim O'Neill: New Templates: Business Group
  • Heath Huffman: Doodlekit New Release Is Out!
  • Rachel: Doodlekit New Release Is Out!
  • Jonas Winfield: Doodlekit New Release Is Out!
more  

 Forum Comments

  • dale hartmann: Photos
  • Lorraine Johnson: RE: Name server and IP address
  • Lorraine Johnson: Name server and IP address
  • Ben Kittrell: RE: Deleting my account
  • Aidan M. Levinson: Deleting my account
more  

Support & Contact

  • FAQ
  • Support Forums
  • Website Issues & Bugs
  • Suggestions & Feedback
  • Business/Sales/Product Inquiries
  • Report Doodlekit Website Abuse
  • Non-Profit Website Support

Community

  • In The News
  • Testimonials
  • Customer Profiles
  • Non-Profit Discount
  • About Us
  • Blog

Legal

  • Legal Policy
  • Terms Of Use
  • Privacy

Resources

  • SEO Tips
  • Small Business Tips
  • Website Building Tips
  • Partners
  • Banners

Copyright © 2006 - . Doodlebit, LLC. All Rights Reserved.

 powered by Doodlekit™ Free Website Builder