How To Create Hyperlinks In Wordpress Post

by 5 replies
6
1. I have written a post that is about 3000 words long. I want to break it up into different sections and have sort of a table of contents at the top.

Headline/Title:

Table of contents
subsection 1
subsection 2
subsection 3

(Body):

subsection1: (subheadline - hyperlink)
body text

subsection2: (subheadline - hyperlink)
body text

and so on

--------------

I want to be able to link to the subsections from anywhere and not the whole post since it would be more specific.

How do I do this?
-------------

2. I would also like to know how this would affect SEO?
#website design #create #hyperlinks #post #wordpress
  • Hi James,

    What you want to do is set the href to link to a hashtag link id or name such as: #name

    Then the item that is being linked needs an id with that name. For example:

    Code:
    Table of Contents
    
    <a href="#1">subsection 1</a>
    <a href="#2">subsection 2</a>
    <a href="#3">subsection 3</a>
    
    (Body)
    
    <h3 id="1" name="1">Subsection 1</h3> - blah blah balh
    text
    
    <h3 id="2" name="2">Sebsection 2</h3> -blah blah blah
    Text
    You dont necessarily have to put <h3> tags around the item being linked to but whatever tag is around it needs to have a corresponding id and/or name. I like to use both name and id just to make sure it works in all browsers. But if it's in a paragraph you need <p id="1"> etc.

    Hope that helps.

    Jason.
  • Oh and as far as SEO. That page might get some boost if the items you wrap the <a> tag around for the link are keyword rich. But I don't expect it to have have huge seo impact either way.
  • Hi i am new to this forum,can u please explain in detail.
  • I am agree with Jason Z . His suggestion is very nice
  • Banned
    [DELETED]
  • You can use this tag to split your post into several pages..
    Code:
    <!--nextpage-->
    Then use the page URL on your table of content href

Next Topics on Trending Feed