Support » Themes and Templates » pages and navigation twenty-eleven

  • So it turns out I have a lot of questions today. I thank you in advance for bearing with me!
    I’m having an issue with my pages that I set up for pages posts. First, the content I wrote as a description of the page, is in the content area AND above the header. I have tried using the default template, the sidebar template, and I created a pages posts template, per the codex pages section. I’m just not getting it.
    Also, I’m unable to make the navigation text the color I want it for the active page.
    Thanks!
    http://www.thelainelist.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • Without knowing exactly what’s going on, it looks like the issue is in the header.php instead of the template files themselves. If you can, post the contents of your header.php so we can see what line of code is generating that.

    Also, in your stylesheet on line 582 there’s a line that reads:

    #access .current_page_item > a, #access .current_page_ancestor > a {
    font-weight: bold;
    color: ivory;
    }

    The change there should reflect the current page.

    Hi David,
    Thanks for the help. Here is the header.php code:

    [code moderated per forum rule – please use the http://pastebin.com/ ]

    As far as #access, I have toyed and toyed with that section. I know the line you are referring to (although it’s not 582 on my sheet?), and this does make the text color ivory, but only on the “The Laine List” and “About” pages. Which is why I thought it might be a template issue?
    Thanks!

    Michael

    (@alchymyth)

    Forum Moderator

    some of the other current pages have the css class: .current_page_parent (for whatever reason ?)

    so you might want to try to add this to the style.

    also, your site has various validation errors on the different pages; you could check them with http://validator.w3.org/

    some of the other current pages have the css class: .current_page_parent (for whatever reason ?)

    so you might want to try to add this to the style.

    I’m sorry, I’m not sure what you mean by this.

    Michael

    (@alchymyth)

    Forum Moderator

    i mean:

    #access .current_page_item > a, #access .current_page_parent > a, #access .current_page_ancestor > a {
    font-weight: bold;
    color: ivory;
    }

    (untested)

    Nice, that worked. Thank you!
    I’m not sure where to find the various pages css class. Can you tell me?
    Also, any thoughts on why the content text is above the header?
    THX!

    Michael

    (@alchymyth)

    Forum Moderator

    I’m not sure where to find the various pages css class.

    try to work with a browser tool such as Firefox’ add-on Firebug http://getfirebug.com/ to inspect the css of your site.

    Thank you. I did download firebug, but I’m still having a hard time figuring out why the page text is showing up in the content area AND the header.

    Hi, Elaine –

    Remove the following line from your header.php –

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";

    That should work – sorry for not getting back to you sooner.

    No worries, David, thanks.
    It didn’t actually work. I’m so stumped!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘pages and navigation twenty-eleven’ is closed to new replies.