Wordpress Link Weirdness -May Be An ID-ten-T Problem

9 replies
  • WEB DESIGN
  • |
How do I "hide" a page so its title does not show in the navbar, but be able to create links to it by using its permalink as its URL?

If I mark the page visibility as "private," I can keep the page title from showing in the navbar. However, when I do so, the permalink for that page takes me to a Wordpress "Whoops, Page not found" page.


With pages I have not marked as being "private," I can use their permalinks in an ahref tag, and this does take readers to the correct page.


Here is why I am asking: In a WP site for a client, I made Wordpress disclaimer and privacy pages that I don't want to show in the navbar. I want to put a link to them (and a link to another website) in the footer with ahref tags.


This goes to a "private" page:
www.jimfrosthair.com/?page_id=77
[edit] That's weird. The link works here, but not if I drop it into a browser. I just now copied the link from here, and pasted it into Chrome, Firefox, and IE. Didn't work
????

It's the HTML links in the footer I am trying to make work. http://jimfrosthair.com

Maybe this really is an ID-ten-T problem. ID10T - write it out, it looks like "idiot."

The ahref tag I put in the footer takes me to the external website. That works correctly. But the ahref tags that point to the "private" pages take me to the "Whoops page not found."

[edit] That's weird too. They work when I go to the site from here at the WF.

For the WP pages I want to show in the navbar, I did not make them "private." They are in the navbar. When I copy their permalinks and paste these into a brower, the permalinks take me to the pages, as they should.


So back to my original question: How do I keep a page title from showing in the navbar, and have its URL so I can link to it with an ahref tag?

Oh man. I need some caffeine!

:-Don

#idtent #link #problem #weirdness #wordpress
  • Profile picture of the author Istvan Horvath
    1. "private" means = visible ONLY to the logged-in author of the Page/post

    2. You were trying to do it in the wrong way... sorry. You should not make them 'private' but use either the proper code or a plugin to exclude Pages from the "navbar".

    Be aware, the "navbar" in 95% of the WP themes is a simple template tag used in the header.php file. In this case a template tag that displays the WP Pages:
    Function Reference/wp list pages « WordPress Codex

    If comfortable with code, read the parameters of the template tag and apply the "exclude=..."

    If not, search for plugins for excluding Pages.

    Better yet, tell the theme author to stop using this template tag and, instead, learn to apply the new Custom Menus feature. New in this case is relative - has been introduced 2 years ago...
    (If the Menus link is live and usable in your Appearance > Menus admin subpanel, then creating a custom menu would replace the general 'fallback' menu - what you see now!)
    Signature

    {{ DiscussionBoard.errors[7214333].message }}
  • Profile picture of the author Don Schenk
    Thanks Istvan.

    The theme is one I created in Headway Theme's framwork. Normally the footer contains a copyright statement. In Headway's WYSIWYG editor there is a field for the copyright info, and I can change it to anything. Like I said, it appears to be an ID-ten-T problem.

    I keep learning. When can I come to Waterdown and do a brain dump from that brain of yours?

    Thanks.

    :-Don
    {{ DiscussionBoard.errors[7214411].message }}
  • Profile picture of the author Istvan Horvath
    Right now it's a beautiful sunny day in Waterdown... with all the Fall colours.

    I am not familiar with these framework things - because, honestly, I don't need them and never bothered to buy them just to be able to help people.
    However, I would be very surprised if they didn't build in the Custom Menus feature.
    So, I'd start there Appearance > Menus:
    - create a new menu on the right > save
    - add items to it from the left > save
    - define where to display the new menu (top left)
    Signature

    {{ DiscussionBoard.errors[7214496].message }}
  • Profile picture of the author Don Schenk
    I used backup buddy to backup the site in case I destroy everything. I did that once yesterday, and rendered the site inoperable. Yikes! Fortunately I downloaded the .php file I had scrambled, repaired it, then uploaded it again. Pheeeww.

    The header php now reads...

    < ? php (I put oddball spaces in this line so it won't work on the warriorforum)
    /* Prevent direct access to this file */
    if ( !defined('WP_CONTENT_DIR') )
    die('Please do not access this file directly.');

    HeadwayDisplay::html_open();

    wp_head();

    HeadwayDisplay::body_open()

    Since the pages I want to exclued are #75 and #77, I would use 'exclude=75,77'
    Is that correct?

    Do I put that anywhere in the header php?

    Thanks

    :-Don

    This is a case of the well-sighted leading the blind.

    BTW It's a sunny day here with fall colors. Our house sits in the woods. You must have sent us your weather. Thanks.
    {{ DiscussionBoard.errors[7214676].message }}
  • Profile picture of the author Istvan Horvath
    That's why I hate all these "framework" type WP designs: they use their own non-WP functions and unless one is fluent with the theme is impossible to help just based on common sense WP knowledge.
    [e.g. Headway-specific, NOT WP code above:
    HeadwayDisplay::html_open();
    HeadwayDisplay::body_open() ]

    Sorry, Don, the file you posted above doesn't have the code I was referring to, so obviously editing the header.php will NOT work.

    You can still try to just make new Menus. Does this 'thing' have that option?

    If not... then you will have to look in other files. But I have no idea how this theme assembles the webpage, i.e. what kind of files are inserted by the functions quoted above.

    You need either somebody that knows by heart this theme or someone to take a closer look at the theme's files.
    Signature

    {{ DiscussionBoard.errors[7215022].message }}
  • Profile picture of the author Don Schenk
    I see your point Istvan. Since the framework is what I am using at this point, I need a workaround. Hmm I wonder if Optimize Press uses standard WP code.

    So, I simply made 2 HTML pages in Dreamweaver that look like the WP page design, and put the privacy info into one, and the disclaimer info into the other.

    Then I stuck an ahref for each in the footer. It kind of defeats the purpose for using Wordpress, but now the 2 links I wanted in the footer are in the footer.

    Thanks again.

    :-Don
    {{ DiscussionBoard.errors[7220179].message }}
  • Profile picture of the author Istvan Horvath
    Hey, you never answered whether that theme has the Menus option. Because if it has, creating a new menu and making it displayed, would cause the behaviour similar to sidebar widgets:
    - if you don't put any widgets in the sidebar, it displays the hardcoded links but when you place even one widget there, the hardcoded links disappear and your widget is visible.

    Same with the custom menus: there is always displayed the so-called "fallback menu" (as the hardcoded sidebar links) but creating your own menu will hide the fallback and will display your custom menu.
    Signature

    {{ DiscussionBoard.errors[7221210].message }}
  • Profile picture of the author Don Schenk
    I am not sure.

    The theme framework will let me add menues to a navbar. I can also add multiple navbars and put them where ever I wish on the page. I guess I could delete the footer and replace it with another navbar.

    The HTML pages with links in the footer solved the problem. Nobody will ever know those are not pages from wordpress, except you and I, and anyone else who would happen to come across this post.

    However adding 2 HTML pages isn't an elegant solution.

    Thanks

    :-Don
    {{ DiscussionBoard.errors[7226881].message }}
  • Profile picture of the author gcampton
    if its a new theme it should make use of WP3 navmenus, in which case just go to Apperance -> Menus and customize your menus as you see fit.
    Signature

    ()_()
    (o.O) <<<----- This bunny is more ethical and mostly made of pixels.
    (")("")

    {{ DiscussionBoard.errors[7226910].message }}

Trending Topics