WordPress.org

Ready to get started?Download WordPress

Forums

Internal Linking (6 posts)

  1. Mark Klinefelter
    Member
    Posted 1 year ago #

    I looked in the wp database and couldnt find anything on my topic. I dont want to repeat previous requests.

    Good Afternoon. I am in the writing "content mode" for http://www.petvetoasis. I am self taught on wp having digested numerous tomes on
    the subject. I learned the ability to use internal linking to link to other content areas on my site. My question is:

    Let's say on page X I have 4 different headings, A, B, C and D that are related to page title X. Let's say on page Y I am writing about
    a subject and i think visitors would also be interested in heading "C" on page X. How do you handle that internal link so that when a
    person clicks on it, the link goes directly to "C" so that one does not have to SCROLL DOWN all the way to "C". Is this possible and how
    do i do that step by step?

    I read in one of George Plumleys books that you can put such headings ie A, B, C and D on a post and use those tiny bits of info to link
    to via each posts' url. However, I do not want to clutter up my main navigation bar.

    Any help would be appreciated.

    Mark Klinefelter, DVM
    http://www.petvetoasis.com

  2. Hi Mark,
    What you need to do is use anchors in your links as explained in this tutorial - http://www.echoecho.com/htmllinks08.htm

  3. Mark Klinefelter
    Member
    Posted 1 year ago #

    Good Morning Christine. You know more about html than I do. I do not
    know a lot of html. I want to learn but that is one of the reasons I am
    using wp. Could you give me the basics via an example of how to write a
    basic anchor and how to write the link to it? Do you write all of that
    in the html side of the wp editor? I did read the link but I need some basic help so that i can replicate what you teach me throughout my site.
    As a small animal clinician I wish i could return the favor! Thanks again. Mark

  4. Jose Castaneda
    Member
    Posted 1 year ago #

    Yes, Mark, you would use the HTML view to insert those anchor tags.
    Quick example:

    <a href="#chapter1">Chapter 1</a><br/>
    <a href="#chapter2">Chapter 2</a><br/>
    
    <a name="chapter1"></a>
    <h1>Chapter One</h1>
    <p>Some text for chapter one.</p>
    
    <a name="chapter2"></a>
    <h1>Chapter two</h1>
    <p>Text for chapter two.</p>
  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @jcastaneda -- if I'm not mistaken, "name" is no longer the preferred way to do that -- as it's not supported in HTML5 - rather id should be used?

    http://www.w3schools.com/tags/att_a_name.asp

  6. Jose Castaneda
    Member
    Posted 1 year ago #

    @WPyogi yes you are correct. I forgot about that and I read that last week too

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags