Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am trying to fix the same bug in version 2.3.1. Juissi above has a workaround, but I think it misses the point because – as far as I can tell – it will not work unless you hard code the navigation menu items, which defeats the purpose. My customers need to be able to add more pages themselves without my having to recode the navigation every time they do this.

    I hope this bug is a top priority. Thanks!

    This is it! But, in case anyone doesn’t see exactly what Leanda means by “make another empty static page”, it’s this:

    Create a new Page with whatever Title you want. Leanda chose “News”. You can use “My Blog” or whatever.

    It doesn’t matter if you put anything in the Page Content box when you create the Page. Nothing will show up when you view it, and the only place you will see “News” or “My Blog” is as the text link to the page — in the page navigation in the Sidebar.

    After you create your new static page and Publish it, go back to Options > Reading in the Dashboard. That’s where you selected your static home page in the first place (WordPress.org calls it a “Front page”).

    Select the page you want to use for the home/front page (if you haven’t already), and then below that select your new page — “News” or “My Blog” or whatever — as the Posts page.

    Click Update Options and you’re done!

    Not sure if this thread is still being looked at all, but there is an easier way to do this so that you don’t have to have a completely separate style sheet.

    I’m also hoping there is a way to make it even easier by assigning a css class to the body tag of the second template, but I haven’t seen this anywhere.

    Rather than designating a different style sheet, do this: when you paste the header.php code into the spot where the <?php get_header(); ?> script appears, just assign a class to the <body> tag.

    For example, use <body class=”secondpage”> for your template page.

    Then in your style sheet use

    body.secondpage {
    background-image:url(whatever.gif);
    }

    You can change anything you want in this way, like a background for a div#content:

    body.secondpage #content {
    background-image:url(whatever-2.gif);
    }

    Cool, eh?

    Now, can someone please tell me how to avoid having to paste all my header.php code into the index-second.php template file – or whatever? There has got to be a better way!

Viewing 3 replies - 1 through 3 (of 3 total)