Forums

[resolved] Static homepage - advice needed (5 posts)

  1. DaraghLally
    Member
    Posted 2 years ago #

    Hi All,

    I've recently set up a personal blog with WordPress, and it works like a dream.

    Now I'm trying to set up a business blog, but this time I want the homepage to be static.

    My issue is that I can set any static page to be the homepage, so if for example I decide "About" as the static homepage, but this causes duplication of that page. There are now 2 pages with the same content, one at http://www.example.com and one at http://www.example.com/about. There is also duplication in the navigation bar, with both "Home" and "About" showing the same content.

    Is there a way to avoid this duplication?

    Ideally I'd like to homepage to just have one nag bar option pointing at it.

  2. apljdi
    Member
    Posted 2 years ago #

    If you set a page to be the front page, say you name it 'front', you'll be able to access it via http://www.example.com and http://www.example.com/front. This isn't actually duplication. It is the same page with two urls. Basically, anyone landing on http://www.example.com will be automatically redirected to the home page-- front. You don't have to display two links to the page, though, if that is what you are worried about.

    If you'd give us your real URL it would a lot easier to help.

  3. MichaelH
    Volunteer
    Posted 2 years ago #

    There is also duplication in the navigation bar, with both "Home" and "About" showing the same content.

    Assuming that Home is hardcoded, then either delete that or use the exclude option with template tag, wp_list_pages(), to exclude the About page from showing in the navigation.

    Also see this discussion:
    https://core.trac.wordpress.org/ticket/9288

  4. DaraghLally
    Member
    Posted 2 years ago #

    Thanks guys, got it sorted using the info you posted. The site is http://www.maximise.ie by the way.

  5. jonimueller
    Member
    Posted 2 years ago #

    There's also another plugin called Exclude Pages that creates a checkbox on each page so you can opt that particular page out of the Page Navigation. This is useful for pages such as Legal Notices, Disclaimers, Privacy Policies, etc., that usually only appear in the footer. :)

    Grab it here:
    http://wordpress.org/extend/plugins/exclude-pages/

Topic Closed

This topic has been closed to new replies.

About this Topic