Linking
-
I would like to know. Is there away I can link from a bold title on a page to the side page widget. What I mean is. If someone wants to read a certain story in my book they can click on the side bar. and it will take them to that part of the page. For example you see the words Dealing With The Public” on the sidebar and it will direct you to to that part.
-
In the sidebar widget, add a link like this:
<a href="http://gaudrybook.wordpress.com/book/yourpage.php#dealingwiththepublic">Dealing With The Public</a>
This link adds #dealingwiththepublic to the end of the url, which will direct the users to that specific area of the page.In the post with the ‘dealing with the public’, add this link to that specific part:
<h2><a id="dealingwiththepublic">Dealing With The Public</a></h2> -
-
If I click on the side menu on dealing with public. it should take me down the page to the same title. but in the side menu it’s not clickable.
-
This part is set up correctly:
<h2><a id="dealingwiththepublic">Dealing With The Public</a></h2>But it looks like your sidebar is showing a list of your site pages. You’ll want to set up a custom menu instead. Here’s how:
In your dashboard, click ‘Customize’ under ‘Appearance’.
Click ‘Widgets: Sidebar 1’
Click the ‘Add a Widget’ button.
Click ‘Custom Menu’.
If it says, ‘No menus have been created.’, click ‘Create Some.’
Now you are on the Menus page and can set up your sidebar menu.
Under ‘URL’ add: http://gaudrybook.wordpress.com/book/yourpage.php#dealingwiththepublic
Change the ‘Navigation Label’ from ‘Home’ to ‘Dealing With The Public’
Remove any links you don’t want and add others (About, Book) then click the ‘Save Menu’ button. -
I’m confused from this part on.
Now you are on the Menus page and can set up your sidebar menu.
Under ‘URL’ add: http://gaudrybook.wordpress.com/book/yourpage.php#dealingwiththepublic
Change the ‘Navigation Label’ from ‘Home’ to ‘Dealing With The Public’
Remove any links you don’t want and add others (About, Book) then click the ‘Save Menu’ button. -
There is another way to do it that may be easier.
Go to your Dashboard and click ‘Customize’ under ‘Appearance’.
Click ‘Widgets: Sidebar 1’.
Click the ‘+ Add a Widget’ button.
Scroll down and click ‘Text’ (Arbitrary text or HTML).
In the ‘Title:’ field, add a title for your sidebar menu.
In the textarea below the title, add the links you wish to appear in the menu (see code below), then click the ‘Save’ button.Copy all of the below code and just replace the urls in the example with your own:
<ul> <li><a href="http://mysite.wordpress.com/book/thepage.php#dealingwiththepublic">Dealing With The Public</a></li> <li><a href="http://mysite.wordpress.com/book/">Book</a></li> <li><a href="http://mysite.wordpress.com/book/thepage.php">The Page</a></li> </ul> -
I see what your saying. and I got most of it. But if I click on the right hand side on Dealing With The Public it should go to the same words on the left side. I must be doing something wrong.
-
Send me a link and I’ll check it out.
You can see it in action on my testing blog: http://sugardazzle.wordpress.com/
Click the ‘Special In-Page Link’ under ‘My Sidebar Widget Menu’ in the left sidebar.I’ve posted an image there of adding the code to the widget so you can see what you should be seeing when you add it.
-
So on my pge I have this code.
<h2>Dealing With The Public</h2>
And On the side menu I put
- Dealing With The Public
Is this right.
-
Sorry for last post sugardazzle. Don’t know what happened. Ok so I added some content so I can see what I am doing wrong. If I click on Introduction on the side it should stay on the page. But I get a different page pop up.
-
Can you post examples of what you used as the menu link code and what code you used for the area you are linking to. Note the #arealinkingto and id=arealinkingto are the exact same text, with no spaces.
Sidebar Menu Link Code example:
<a href="http://mysite.wordpress.com/mypage/#arealinkingto">Go to special area</a>Linking-to area code example:
<a id="arealinkingto">The Special Area</a> -
-
-
Hello again sugar dazzle. I’m trying to centre the word introduction, but every time I do. It loses it’s link function. Why is that.
-
Does anyone know why when you move a word that is a link to the middle of a page. it drops it’s link?
-
-
When you go into the post to edit the link, make sure to click the ‘Text’ tab instead of the ‘Visual’ tab. That way, you can be sure to copy and paste the link along with the h2 heading.
-
-
- The topic ‘Linking’ is closed to new replies.