• Resolved somanyqs

    (@somanyqs)


    As you can guess, I’m a new user – watch out!
    I’ve looked for the answer, but haven’t had any luck yet.

    I don’t know how to code (but I am cutting-and-pasting like a maniac to learn how to modify themes!).

    I was wondering if there is a way to change a Theme (I am using Whitespace 1.0), so that you can have *some* of your Pages appear in the header, and then other Pages appear in the left sidebar. I am trying to create a non-blog site, so I really want static Pages only.

    What I am trying to do is make a bunch of Pages, then have the first 4 (or so) appear in the header – like about me, contact me, home, background. And right now, this is just how it works.

    However, what I would like to do is when I add more Pages not have them keep appearing in the header, but have the rest all appear in the left sidebar so people can navigate using those also. Anyway, I’m not sure if that is possible to split it up like that…

    Is something like this even possible? Is there a theme that allows it? And if there is a Theme that has it, is it as easy as cutting and pasting (roughly) into my existing modified Whitespace theme?

    Thanks so much in advance – this is quite the learning process to be sure!
    J

Viewing 13 replies - 1 through 13 (of 13 total)
  • You just need to read carefully the documentation:
    Template_Tags/wp_list_pages – that’s displaying your Pages.
    Pay attention to the different parameters, e.g. include, exclude, depth… it is doable.

    Thread Starter somanyqs

    (@somanyqs)

    Ahh, thanks much – I need to spend more time going through these code pages, clearly!
    I did get it to work, though one more related easy question –

    how do I figure out from the Admin control panel what the ID of a particular page is? In order to figure out I just hovered above the link with my mouse arrow and then looked at what the ID was in the status bar of my browser, but there must be an easier way I am sure (I don’t normally have the Status Bar enabled). I just didn’t see the ID listed on the Manage>Pages page where I would have expected it… Is there a way to force it to be listed on that page somehow? Like as another column?

    Thank you again moshu – I promise to spend more time on the Tags code pages!
    Regards,
    J

    I have a similar question. I have inserted the code under ”List subpages even if on a subpage “ and have it working. But, it displays as an unordered list. How can I modify that? I put a new declaration for page_item and current_page_item. I can change the background color, but I can’t get it to display as anything other than an unordered list.

    Any ideas?

    somanyqs: http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/

    gretske: no ideas because I don’t know what you want. What’s wrong with ul?

    Moshu –

    Here is the URL –> http://www.solvox.com/telecom/wordpress/?page_id=88
    Just above the title, ”Ray Horak,” there is a link generated by the code you referenced earlier, titled, “Litigation Support Experience.“ This was generated by the code in pages.php which shows only sub-pages, as I wanted it to do.

    I would like to re-format the way it is displayed, so it does not appear with the bullet in front of it. I tried changing the CSS for page_item and current_page_item, but when I do that, it also changes the pages (”Home,“ ”About,“ ”Gene Retske,“ etc.) at the top of the page.

    How can I change only the sub-pages format?

    Give that <ul> around the list its own class or id in the html code and then define the properties in the stylesheet.

    e.g. `<ul class=”whatever”>
    <?php wp_list_pages (‘parameters go here’); ?>
    `

    then in the stylesheet:

    .whatever { your stuff here
    ...
    }

    Moshu

    Thanks. I still can’t get it to format. I did the ul class as you said. Here is what I added in the stylesheet:

    .pagehdr {font-size: 180px; margin-left: 10px; margin-top: 10px; border: 1px solid #d6d3d3; }

    What am I doing wrong? (I am a CSS dummy, so please accept my apology!)

    What am I doing wrong?

    Everything.

    I thought it was obvious that you will add the ul class to the second instance of your pages list which displays your sub-Pages.
    Looking at the source code – there is nothing.

    Here is what I just added to the page.php file:

    <?php
    $children = wp_list_pages(‘title_li=&child_of=’.$post->ID.’&echo=0′);
    if ($children) { ?>
    <ul class=”pagehdr“>

    <?php echo $children; ?>

    <?php } ?>

    Plus, the code I added to the stylesheet

    #1.
    This is bad: ”pagehdr“
    This is good: “pagehdr”

    Notice the difference between the quotes?

    2. No, you do NOT have that in your code, you have this:
    <div class=“pagehdr”> <== again wrong quotes; get a plain texteditor like Notepad.

    3. Either way, you do not want to style the div or ul – but the li items in them.
    Styling_Lists_with_CSS

    Moshu –

    OK, I fixed that. Thanks! But, I still don’t know how to get rid of the bullet. Any ideas?

    I hate when people don’t read the suggested documentation. It is described there exactly how to do it, so stop posting. Just read and experiment.

    Well, Moshu. I did read the docs, but I am not a programmer, so I did not understand it. I am just a guy trying to make my website work. I don’t know how to to set “the title_li parameter to an empty string.“

    But. sorry to have bothered you. I will find someone else who can help me.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Can I put different Pages in header and sidebar?’ is closed to new replies.