• Resolved victore

    (@victore)


    How do I link to another section on different page? And also, where do I make these changes in WordPress? I know it’s not in the Style sheets.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi victore

    Sounds like you’re wanting to create anchors and links.

    For example, you’re on the Home page but you want to link to your Contact page. You’d create a link like this:
    <a href="http://mysite.com/contact">Contact page</a>

    But if you’re wanting to link to a particular section on the Contact page, maybe the form, you’ll need to create a link like this:
    <a href="http://mysite.com/contact#mycoolform">Contact page</a>

    And on the Contact page, you’ll have to name the section you want to link to. Let’s say there’s a heading near the form, like this:
    <h3>We'd love to hear from you</h3>

    Give it a unique name by giving it an id:
    <h3 id="mycoolform">We'd love to hear from you</h3>

    WordPress.com have more information on these types of link.

    Let me know how you go!

    Thread Starter victore

    (@victore)

    Thank you, Andrew. It seems pretty simple. The only problem is, I’m not sure what file to open in order to make these changes.

    You can edit the content of your pages in the WordPress admin area (generally found at http://yoursite.com/wp-admin), under the Pages menu. More information on the Pages screen here.

    Thread Starter victore

    (@victore)

    Aghhh! (Text) Thanks, but what if I want to link from a Widget? It has an area to link to a page…

    You can put any HTML you like in a text widget, if that’s what you mean. If you’re using trying to use a different widget, like the Pages widget, to display a list of links to your Pages, then you’ll need to do it differently.

    Instead, try creating a custom Menu. Go to Appearance > Menus, and click the ‘create a new menu’ link. Add the relevant Pages to the menu. If there’s a menu item that needs an anchor, add it instead as a Link, and input the link required (like ‘http://mysite.com/contact#mycoolform&#8217; in the example I gave previously).

    You can then display this custom menu using the Custom Menu widget.

    Good luck.

    Thread Starter victore

    (@victore)

    Okay. Thanks again for your help!

    Thread Starter victore

    (@victore)

    This topic is resolved

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Linking to Another Section on a Different Page’ is closed to new replies.