WordPress.org

Ready to get started?Download WordPress

Forums

Not sure how to describe... (4 posts)

  1. scrumpy
    Member
    Posted 9 years ago #

    New to WP so this maybe a simple problem I've noticed.

    Over at my website http://www.crump.co.uk I've created a page in WP for my wallpaper section (just a single page at the moment), it can be accessed via the top nav bar (click and see). The other items on the nav bar point nowhere for the time being, I've just given them a href of "#" for now. I've noticed however that when in the wallpaper page and look at the urls for the nav bar the href's with "#" get the page id of the wallpaper in front of them.

    I'm sure I'm doing something wrong or using pages incorrectly. I've added the URLS for the navigation bar in my header.php file located in the theme.

    Hope you cn help.

    Thanks.

  2. moshu
    Member
    Posted 9 years ago #

    You are doing everything well, and that's the normal behaviour of #. It always points to the site where you are, so the browser remains there.

  3. Lorelle
    Member
    Posted 9 years ago #

    when you are on your front page, the address is:

    http://www.crump.co.uk

    And every # link when you hover over it looks like this:

    http://www.crump.co.uk/#

    Right? Now, when you are on page 3, the link is this:

    http://www.crump.co.uk/?page_id=3

    So doesn't it make sense that the # from there would now be featured from:

    http://www.crump.co.uk/?page_id=3#

    Which is no different from the first set of links?

    When you don't define them, they don't know what to do and this is what you get. Do you see the connection?

  4. scrumpy
    Member
    Posted 9 years ago #

    Think I understand now, my mistake in understaning... should have know better really.

    Thanks for the prompt responses.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags