Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8425315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:14:13+00:00 2026-06-10T04:14:13+00:00

So I have a basic (WordPress powered) portfolio site where most of the content

  • 0

So I have a basic (WordPress powered) portfolio site where most of the content lives on the homepage, and then I’m using a custom posts category for the featured projects, so users can click through and get more info on the project at its category-single.php page. So the idea is it’s a pretty flat site in terms of structure.

So flat, in fact, that the site navigation in the header simply links to content that is all on the home page (About, Work, What, Contact are all sections on the home page that get scrolled down to when you click).

What I want to happen is when the user is on the home page, and clicks one of the top nav links, the page scrolls down to that section (no problem here – I’ve got this part working just fine), and then when the user is on another page of the site (think one level deep, a custom post page) if they click the header nav links it returns them to the homepage and scrolls them down to that section. I’m thinking in terms of basic url anchor structure, like http://somesite.com/page#specific_section where that link takes the user to a specific section on somesite.com/page.

However the trouble I seem to be having is with creating these url’s correctly. I’ve written them as mysite.com#about, mysite.com#work, mysite.com#contact, mysite.com#page-top, but instead of trigging the user to go to the homepage, the browser is interpreting those links as instructions to look for those sections on the current page.

What am I doing wrong, and what is the correct way to accomplish this?

The thing I’m trying to consider additionally, is whether I need to create PHP logic that displays the links one way on the homepage, and another way on the rest of the site.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:14:14+00:00Added an answer on June 10, 2026 at 4:14 am

    What you need to do is use the actual filenames of the pages in question, like:

    mysite.com/aboutme.html#qualifications
    `mysite.com/portfolio.html#ZirTech

    For links to the homepage, try either using the root relative path or fully qualifying the link like so:

    http://www.mysite.com/#section fully qualified

    /#section relative path

    You shouldn’t need to implement them a different way on the homepage – just implement them properly throughout the site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been setting up a very basic Wordpress site. All of the pages have
I have a wordpress site with a basic CSS dropdown menu, and seems the
I have a Wordpress site, and I am using the API of a 3rd
I have some basic hyperlinks (they're tags dynamically generated by Wordpress). Here's the code
I have a wordpress theme with an options page. I have included a basic
I am writing a wordpress theme, and have run into a fairly basic problem.
I'm using svn for the first time, to maintain a custom version of Wordpress.
I'm an independent web designer/developer. Most of my work is building basic Wordpress websites
I'm putting the final touch to my friend's portfolio website (using wordpress) but I'm
I'm working on a template using Wordpress and so far it has been basic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.