Chip Bennett
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Second level nav using menusFirst, change this:
<div id="topnav"> <?php wp_nav_menu( array( 'theme_location' => 'topnav', 'container_id' => 'topnav', depth => 1 )); ?> </div> <div id="secondnav"> <?php wp_nav_menu( array( 'theme_location' => 'nav-jobs', 'container_id' => 'secondnav', 'depth' => 1 )); ?> </div>…to this:
<?php wp_nav_menu( array( 'theme_location' => 'topnav', 'container_id' => 'topnav', depth => 1 )); ?> <?php wp_nav_menu( array( 'theme_location' => 'nav-jobs', 'container_id' => 'secondnav', 'depth' => 1 )); ?>The rest really is a CSS issue, that, without seeing actual, rendered code, we really can’t help with.
Forum: Themes and Templates
In reply to: Remove/Modify footer copyright textOnly ever download WordPress Themes from known, trusted sources. Here’s why.
Forum: Themes and Templates
In reply to: Options page content placeIf you’re making a settings page for a publicly distributed Theme, you should be putting that settings page under Appearance. Why do you need three (?!?) separate sub-menu pages for Theme settings?
Forum: Fixing WordPress
In reply to: Second level nav using menusI wanted to have a static two row menu system, rather than a drop-down.
Okay, so then you really do want two separate menus.
That page seems to make sense but what about submenu styles?
You can style each menu separately, based on the ID or class you pass to the UL or the containing DIV, via
wp_nav_menu().Let’s try to step through it, completely, one more time:
REGISTER NAV MENU LOCATIONS
In functinos.php:
register_nav_menus( array( 'topnav' => 'Top Navigation Menu', 'secondnav' => 'Second Navigation Menu' ) );OUPUT TOPNAV
We’re going to get rid of all extraneous markup, and pass IDs and classes instead directly to
wp_nav_menu()(please be sure to reference thewp_nav_menu()Codex reference to understand its parameters):wp_nav_menu( array( 'theme_location' => 'topnav', 'container_id' => 'topnav', 'depth' => 1 );OUTPUT SECONDNAV
Same drill as above:
wp_nav_menu( array( 'theme_location' => 'secondnav', 'container_id' => 'secondnav', 'depth' => 1 );CREATE/APPLY CUSTOM MENUS
1. Go to Dashboard -> Appearance -> Menus
2. If you’ve not done so already, create the custom navigation menus that you wish to apply to the two Theme locations.
3. Apply each of those menus to the appropriate Theme location, via the “Theme Locations” meta box in the upper left-hand cornerAPPLY CSS STYLES
This part is mostly up to you, because I don’t know the exact styling you’re looking for. You can target the topnav menu via
#topnav .menu, and you can target the secondnav menu via#secondnav .menu.Forum: Fixing WordPress
In reply to: Second level nav using menusFor some reason all of the imposed classes are making my head hurt but am sure it is simple enough to do. Or at least I hope it is.
If you’re just trying to develop a dropdown menu, I would encourage you to take a look at Twenty Eleven. It has solid CSS for controlling a three-level dropdown menu, as generated by
wp_nav_menu().Also, I’d appreciate your feedback on the CSS classes section of the
wp_nav_menu()Codex entry. I recently added it, and would love to know if it’s useful, or needs improvement.Forum: Fixing WordPress
In reply to: Second level nav using menusCan we back up – a bunch – and ask a more fundamental question:
Looking at your HTML markup, this actually looks like one, single menu. Is that correct? Or are these, in fact, two different menus?
If a single menu: why not just nest your menu items, so that they display the way you want them to?
Forum: Fixing WordPress
In reply to: Second level nav using menusand changed the nav to <?php wp_nav_menu( array( 'menu' => 'primary' )); ?>'menu', or'theme_location'?Also: have you defined separate custom menus, and applied those custom menus to the specified Theme locations?
Forum: Fixing WordPress
In reply to: Second level nav using menus<?php wp_nav_menu( array( 'menu' => 'primary' )); ?>You’re still using the wrong parameter. You need to use
'theme_location'rather than'menu'.Forum: Themes and Templates
In reply to: Change comment linkWhy then is the subtitle of this forum “– XHTML and CSS” ? I appreciate forums as a place to learn and ask questions. I didn’t know you needed to be of a certain skill level to participate.
Apologies, but most of the volunteers here are generally geared toward answering WordPress-specific, Theme-related questions. There are simply better places available for CSS-specific help.
As for your question: I’m using customizing Twenty Ten (child theme). That particular text is at the end of each post. It’s where the reader clicks to make a comment.
I’m guessing I make this change in a PHP file, but which one?
That text/link is being output by the
comments_popup_link()template tag, found in theloop.phptemplate-part file.Forum: Themes and Templates
In reply to: Pages instead of posts in Exhibition DesignWhat is “the Exhibition Design”?
Forum: Fixing WordPress
In reply to: Second level nav using menusYou have two separate Theme locations, but are referencing the same one in both calls to
wp_nav_menu().First, be sure you’ve registered two separate menu locations, in functions.php:
register_nav_menus( array( 'primary' => 'Primary Menu', 'secondary' => 'Secondary Menu' ) );Second, call the appropriate Theme location in each
wp_nav_menu()call. Assuming you want to useprimaryin the first call:<div id="topnav"> <ul> <li><?php wp_nav_menu( array( 'theme_location' => 'primary' )); ?></li> </ul> </div>…then you’ll need to reference
secondaryin the other call:<div id="secondnav"> <li><?php wp_nav_menu( array( 'depth' => '2', 'theme_location' => 'secondary' )); ?></li> </div>Forum: Themes and Templates
In reply to: Help required on iTheme2iTheme2 is a commercial Theme, for which the developer provides paid support. You should consult the support offerings of the developer.
Forum: Themes and Templates
In reply to: Themes / templates for news siteForum: Themes and Templates
In reply to: cannot update wordpress theme .after chaned folder nameChange the folder name from demo, back to suffusion?
p.s. changing this folder name affords you no additional security, but will incur unintended consequences, and headaches.
Forum: Themes and Templates
In reply to: Change comment linkThat’s generally the response you’ll get, for questions involving making CSS changes.
As to your second question:
Also, I’d like to change the comment link from saying “No Comment” to “Add Comment”. Where do I do this?
Where, exactly in your template file is that text being output?