Linking

  • Unknown's avatar

    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.

    http://gaudrybook.wordpress.com/book/

  • Unknown's avatar

    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>

  • Unknown's avatar

    Sorry I find this a little confusing.

  • Unknown's avatar

    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.

  • Unknown's avatar

    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.

  • Unknown's avatar

    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.

  • Unknown's avatar

    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>
  • Unknown's avatar

    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.

  • Unknown's avatar

    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.

  • Unknown's avatar

    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.