Forum Replies Created

Viewing 15 replies - 91 through 105 (of 121 total)
  • First, I posted the wrong code up there – should have been my CSS code not the html.

    Second, I think I’m working this out and have posted a question in the plugins and hacks thread. So I’m closing this out.

    I think I might be on the way to an answer to what I’m trying to do. I think I need to add my CSS info. as a parameter to my nav call code. I have posted a question about that under plugins and hacks and will pursue that there.

    Thanks for all help!


    I’m near the end of designing my own theme and it’s been a ride! I also would like to find a good step-by-step resource.

    I’ve been using Tessa Blakely Silver’s book: WordPress 2.8 Theme Design and it’s been very helpful. Since I’m working on a non-blog site there were some limitations because it’s about designing a blog. And it’s a bit dated as there’s now a different default theme for WP 3.0+ than what she was using. But it’s been very helpful and presented a lot of material in a good order. I’m coming from a designer’s perspective, not a programmers perspective, and she addressed a lot of things from my point of view.

    But, as always seems to be the case in this arena, there always seems to be some holes in the information as the experts assume we newbies know things that we don’t. I really need certain things clearly spelled out and explained, not simply referenced in one sentence, which happens a lot, both in her book and in a lot of the articles in the Codex or out on the web. I need context!

    But her book is an excellent starting point.


    It seems like I’m not getting the entire postings or else you guys are adding to your posts after your first draft?

    In terms of plugins or not plugins, I’m someone who started out life in Design and started building websites some years ago using Adobe Golive. Over time I learned to build “from scratch” with HTML and CSS, but I’m wasn’t a php or javascript programmer, though I could place prefab javascripts into my sites.

    Adobe has tabled Golive so all us Golive users have had to decide whether to switch to Dreamweaver or similar or go elsewhere. My partner and I decided to move to WP because it would allow us to do so many wonderful dynamic things and it included a built-in CMS.

    I’ve never built a blog – I’ve always built business websites and clients want to be able to make minor changes themselves, yadda, yadda.

    So we started tooling in around in WP. But we’re designers, so the idea of using other people’s themes just isn’t appealing to us. It takes away a big part of what we enjoy and what we get paid to do. So we started out by wanting to tackle theme design.

    As you can imagine, that’s been a roller coaster, but it’s great too. When I started using Golive I relied on it to generate my code, and when I actually learned to code HTML and CSS from scratch it felt very empowering. This is similar.

    We did some php tutorials before we started which help, but we’re nowhere near competent re: php, other than good cutting and pasting abilities.

    So, since I’m used to building navbars from scratch I’d prefer not to use a plugin if I don’t have to. I was thrilled when I managed to menu-enable my theme!

    Since the menu subtab has a place to add CSS classes I wanted to try it out, but I’m not sure how – that’s where I’m at now.

    Thanks for all your help and I know I’m going to post this and it will “cross in the mail” with your response!

    Hi David:

    I’m probably misunderstanding you. Are you referring to the links t-p provided about the plugins?

    I guess where I’m coming from is that there is a place to add some CSS in the Appearance > Menus admin window, but there’s no instructions on specifically how to add the styles. So you’re not referring to that, right? You’re referring to how to use one of the plugins, right?


    Hi David:

    Which tutorial?


    Hi t-p:

    Thanks for the references. Does this mean there isn’t a way to style my navbar through the Appearance > Menu subtab?

    Is a plugin required?


    Oops, I was so happy to be able to help someone that I didn’t really read closely enough…

    It looks like you’re already aware of the menu functionality and are just trying to get the function to work.

    FWIW, here’s what I used:

    function register_my_menus() {
    'navbar-menu' => __( 'Navbar Menu' ),
    'blog-menu' => __( 'Blog Menu' ))
    add_action( 'init', 'register_my_menus' );

    Is that what you need?

    I’m a newbie so I maybe I’m wrong, but I was just asking about menus/navbars yesterday and here’s what I learned.

    WP 3.0 now has menu building capabilities accessible through the admin:
    Appearance > menus. It allows for multiple menus.

    I designed my own theme so I had to “enable” menus. What you might have right now is the message that your theme isn’t set up to work with the menus admin or words to that effect. That’s what I had.

    I followed the instructions from here:

    and added the code to my functions.php and to relevant templates.

    I’m building one main menu, then have a secondary menu for just blog related items (my site is a business site with a blog, not a blog with some static pages). So my second menu is going into a second sidebar just on blog related pages. I’ve used widgets for that menu and it’s interacting just fine with my main menu.

    Now I have to figure out the proper way to use the options IN the admin – menu, to style my navbar, but that’s another issue. I’ll be posting that question.

    Hope this gets you started!

    I’m going to restate my question about how to do CSS in the new menu admin – my other questions have been answered here.

    Okay! More reading and digesting…

    I have gotten my theme “menu-enabled” – ie. now I can build my custom menu through the new Appearance > Menus Subpanel.

    Now, I had a menu all designed and placed on the page and styled via CSS. It’s horizontal with some dropdowns. The CSS code for my navbar is:

    #navbar {width: 100%; height: 24px; }
    #navbar ul {margin: 0 0 0 73px; padding: 0px; }
    #navbar ul li {display: inline; height: 30px; float: left; list-style: none;
    margin-left: 5px; margin-right: 5px; position: relative;
    #navbar a:link { color: #FFF;  text-decoration: none; }
    #navbar a:visited { color: #FFF; text-decoration: none; }
    #navbar a:hover { color: #FF3;  text-decoration: none; }
    #navbar a:active { color: #FFF; text-decoration: none; }
    /*Navbar sub menus*/
    #navbar li ul { margin: 0; padding: 7px 0 0 11px; height: 53px; display: none; position: absolute; left: 0; top: 23px; background-color: #426186; background-image: url(images/droptile.jpg); background-repeat: repeat-x; }
    #navbar li:hover ul { display: block; width: 130px; }
    #navbar li li {display: list-item; list-style: none; }
    #navbar li li a:link { color: #FFF;  text-decoration: none; }
    #navbar li li a:visited { color: #FFF; text-decoration: none;}
    #navbar li li a:hover { color: #FF3; text-decoration: none; }
    #navbar li li a:active { color: #FFF; text-decoration: none; }

    In the menu admin there’s the configuration options, which includes CSS Classes. Do I need to change my navbar styles from ID’s to classes? And how do I list them or apply them – is there any special order or configuration required? Or is there some other way this is supposed to be done?


    Thank you both for your help!

    OK, based on my first read through I need to add the appropriate code to my functions.php, my relevant templates, etc. to “menu-enable” my WP. I can do more than one menu – need to name them and can then style them.

    Now, I’ve been using the book WordPress 2.8 Theme Design by Tessa Blakely Silver as my starting point. It’s been very helpful except that it’s about designing blogs and not “regular websites” so some of my questions aren’t addressed. I missed some of her navbar explanations because I went right to creating static pages and she handled nav stuff with blog layout…my bad.

    Anyway, her book references the previous default template. In her approach, she uploaded the default sidebar.php, then called each area with code: pages, categories, archives, etc. So initially the “entire” menu was in the sidebar. She created 2 sets of styles and applied one set to the static page-related links, moving them out of the sidebar and into a horizontal arrangement, and left the blog related menu items in the sidebar.

    But I hadn’t followed her steps properly – I just created a HTML/CSS menu and called it by using: <?php include (TEMPLATEPATH . “/navbar.php”); ?>

    So after I had everything else working I wanted to add a blog. So I went back to my index.php and added blog related code to the loop, using Tessa’s loop from her book. This brought my trial blog entries to life on my blog.html page – good. But it didn’t do anything re: categories, archives, etc. So I went into my widgets area and there were widgets for categories, archives, and I just shoveled those over into my widgetized sidebar.

    My question is: is this a different way of doing what Tessa illustrates by adding her own code? Is using the widgets the NEW way to do it, or simply a different way of doing it? The articles you guys referenced seemed to indicate that I would start out by making 2 separate menus. Her approach started with a single menu that got split up via CSS. Using widgets for the blog related menu items seems like a 3rd way. ??????


    Thanks Esme.

    Hi Esme:

    One of the first things I see in TwentyTen’s comments.php is:

    The actual display of comments is
    * handled by a callback to twentyten_comment which is
    * located in the functions.php file.

    Does this mean I have to add something to the my functions.php for the comments stuff to work?


Viewing 15 replies - 91 through 105 (of 121 total)