How To Create Hyperlinks In Wordpress Post

5 replies
  • WEB DESIGN
  • |
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?
#create #hyperlinks #post #wordpress
  • Profile picture of the author Jason Z
    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.
    Signature
    Co-Founder of the Local Profit Model Training Program for Offline Consultants

    Jason Zimmerman is an offline marketing and consulting professional. He has been developing web sites and digital marketing plans for local businesses since 2000.
    {{ DiscussionBoard.errors[4990967].message }}
  • Profile picture of the author Jason Z
    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.
    Signature
    Co-Founder of the Local Profit Model Training Program for Offline Consultants

    Jason Zimmerman is an offline marketing and consulting professional. He has been developing web sites and digital marketing plans for local businesses since 2000.
    {{ DiscussionBoard.errors[4990979].message }}
  • Profile picture of the author barrentine
    Hi i am new to this forum,can u please explain in detail.
    {{ DiscussionBoard.errors[4990993].message }}
  • Profile picture of the author RhysLucas
    I am agree with Jason Z . His suggestion is very nice
    {{ DiscussionBoard.errors[4991019].message }}
  • Profile picture of the author primitip
    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
    {{ DiscussionBoard.errors[4996758].message }}

Trending Topics