WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Horizontal Menu: Hyperlink Problem When Clicking On Menu Buttons (16 posts)

  1. rester
    Member
    Posted 9 years ago #

    I've created a horizontal menu for pages, but can't get the pages visible when I click on the menu items. I get a "was not found on this server" message for each page. The only one working is the home page. I deleted the Pages section that by default is on the right side of the main page. Does this perhaps have anything to do with it? Or am I simply making a stupid mistake? I created the menu in the header.php file. I hope someone can help and explain what I should do exactly. Thanks!

  2. oriecat
    Member
    Posted 9 years ago #

    Can we see it?

  3. rester
    Member
    Posted 9 years ago #

  4. vkaryl
    Member
    Posted 9 years ago #

    Are you using relative links? That's what usually causes a link output like this: http://nohypemedia.com/product.php?page_id=4

  5. rester
    Member
    Posted 9 years ago #

    What are relative links?

  6. vkaryl
    Member
    Posted 9 years ago #

    <a href="/product.php?page_id=4">PRODUCT</a> is a relative link. An absolute link is the complete address to the page you want to display, beginning with http://nohypemedia.com/wordpress/ etc. WordPress isn't very good at relative links in my admittedly small experience. Try hard-coding the links absolutely.

  7. rester
    Member
    Posted 9 years ago #

    O.k., I'll give it a try. Thanks.

  8. rester
    Member
    Posted 9 years ago #

    I tried this: CONTACT
    but it still doesn't work and gives the following message:
    The requested URL /wordpress/contact.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    All pages I made reside in a category named: home. Is this perhaps a reason why I can't get the menu buttons to open the pages?

  9. vkaryl
    Member
    Posted 9 years ago #

    So you're saying you have a folder named "home" within your wordpress folder, and that's where the pages ref'd by the navbar links are found?

    [Edit - nope, that can't be it, tried it but still getting a 404....

  10. rester
    Member
    Posted 9 years ago #

    No, I made that in Manage / Categories / Add New.

  11. vkaryl
    Member
    Posted 9 years ago #

    Oh.... no, that wouldn't have anything to do with it far as I know. That's just a category you choose to include a post etc. in.

    Okay - back up a sec. You actually have a file named contact.php in your wordpress folder somewhere, right? Could you post the whole path to that file?

  12. rester
    Member
    Posted 9 years ago #

    I can't find that file.

  13. Ming
    Member
    Posted 9 years ago #

    Hey rester, your links should look like this:

    http://nohypemedia.com/wordpress/index.php?page_id=8

    faq.php doesn't actually exist as a file. Instead WP loads index.php which then checks to see what you want to load - in this case, the page with ID #8 (your faq). It then pulls up the proper template and content.

    The easiest way to get the proper links is to 'view' the page from the manage pages section. That'll put the proper URL in the address bar which you can cut and paste into your menu.

  14. rester
    Member
    Posted 9 years ago #

    Hey, it's working. Thanks a lot, Ming! There's something else that I'm trying to figure out... At the moment there's a bit of white above the blue with the name of the product. How can I get rid of this and have the blue area cover the top (until the border) completely?

  15. Ming
    Member
    Posted 9 years ago #

    No problem, vkaryl put me on track with the missing contact.php.

    If I'm understanding you right you're asking about the header (that contains the big title 'imustictest'). That's actually an image including the border and even a little background color. Here's a direct link to it so you'll see what I mean.

    http://nohypemedia.com/wordpress/wp-content/themes/default/images/kubrickheader.jpg

    So to extend the blue to the top you'll actually have to edit the image itself. Once you've changed it you can just copy it over the old image.

  16. rester
    Member
    Posted 9 years ago #

    thanks! i'm off to bed.... it's 5:41 a.m. here in holland.

Topic Closed

This topic has been closed to new replies.

About this Topic