WordPress.org

Ready to get started?Download WordPress

Forums

Linking to blog from static page. (3 posts)

  1. inMotion
    Member
    Posted 2 years ago #

    This topic has probably been beat to death, but I cant for the life of me get this to work.

    1. I have a static page that we shall call frontpage.php
    2. I want to create 6 pages in WP that will show up as nav menu on the
    static page.
    3. I want the frontpage.php to be linked to a page called "Home" which
    will display on the static page navigation as "Home".
    4. I want the actual blog to display on a page called "Blog" which
    links from the static page navigation "Blog" button.

    Basically I am trying to figure out how to link to the blog from the static page navigation, and also how to display said navigation via created pages within WP.

  2. Samuel B
    moderator
    Posted 2 years ago #

    to dispaly what menu and what you want on it
    dashboard - appearance - menus

    to have a static front page and a "Blog" page - follow this
    http://codex.wordpress.org/Creating_a_Static_Front_Page

  3. peredur
    Member
    Posted 2 years ago #

    I'm not entirely sure I completely follow you, so here's some general stuff that might help. If I'm not addressing the correct question, perhaps you could try explaining again, with a link to your site if that's possible. It always helps if we can see the site.

    The default situation in WP is that the front page is a blog, which shows up as 'Home' on the navigation menu. The rest of the navigation menu lists your (top level) pages. So every time you create a page, as opposed to a post, it gets added to the navigation menu, to the right of the 'Home' page.

    To change this situation, you need to do two things:

    1. Make your front page a static page
    2. Create a custom menu to hold just the items (pages, category lists, etc) you want

    You will first need to create a page that will be your static front page (Dashboard --> Pages --> Add New) if you haven't already created one. Any page will do. Most people create a page called 'Home', but you don't have to. By default, the navigation menu item label will be the title you give to this page, but you can change that as I explain below, if you want the page's title to be something other than 'Home' whilst retaining the label 'Home' in the menu.

    Next you should create a blank page (just a title with no content) that will hold your blog. Again, it can be anything, but most people create a blank page with the title 'Blog'.

    Now go to Dashboard --> Settings --> Reading. On the "Reading Settings" page, tick the 'A static page' check box and select the page you want to be your home page from the first dropdown list. When you've done that, choose the page that will be your blog page by selecting the blank page you created for your blog from the second dropdown list.

    Save your changes.

    To create your custom menu, go to Dashboard --> Appearance --> Menus.

    If you haven't already created a custom menu, the page will be set up to create one. If you're creating a second or subsequent one, you need to click on the tab with the label '+' in the main panel.

    Enter a name for your custom menu in the 'Menu Name' text box: something like 'main-nav' is what I use.

    Between the main panel and the sidebar, you will see a column of panels displaying the things that you can add to the menu. Usually, you will see 'Custom links', 'Pages' and 'Categories'. Above all of these you will see a panel called Theme Locations, one of which will be 'Primary Navigation'. Select your custom menu ('main-nav', if that's what you called it), from the dropdown list, as the primary navigation menu.

    You now need to add items to your menu. Usually you want to add pages and/or category lists. Just select the ones you want from the panels between the sidebar and the main panel and click the 'Add to Menu' button. When you do that, the item will appear in the main panel.

    Make sure you add the blank page you created for your blog!

    If you want to add arbitrary URLs, you can do that to: for a link to an external site, for instance.

    You can drag and drop items around in the main panel to get them ordered just how you want them. You can even nest them.

    If you want the label that appears in the menu to be different from the title of the page, just click the down arrow on the menu item in the main panel and enter a 'Navigation Label'. So, for example, if your home page has the title 'Welcome' and you want the menu item to say 'Home', just type 'Home' into the 'Navigation Label' text input.

    Now you can save your work and view your site. You will have a static front page with the label 'Home' (if that's what you wanted), and the rest of the menu items you added, in the order you specified when you dragged the items around. Assuming you remembered to add your blog page, that will be there as well, with all your articles showing up in the normal way.

    HTH

    PAE

Topic Closed

This topic has been closed to new replies.

About this Topic